Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: visual_studio/NativeClientVSAddIn/InstallerResources/install.py

Issue 10836143: Refactored the VS add-in (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Copies necessary add-in files into place to install the add-in. 6 """Copies necessary add-in files into place to install the add-in.
7 7
8 This script will copy the necessary files for the Visual Studio add-in 8 This script will copy the necessary files for the Visual Studio add-in
9 to where Visual Studio can find them. It assumes the current directory 9 to where Visual Studio can find them. It assumes the current directory
10 contains the necessary files to copy. 10 contains the necessary files to copy.
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 if options.install_ppapi is None: 142 if options.install_ppapi is None:
143 print "\n" 143 print "\n"
144 print "Set up configuration to enable Pepper development " \ 144 print "Set up configuration to enable Pepper development " \
145 "with Visual Studio?" 145 "with Visual Studio?"
146 print "((Yes)) - I want to create and copy relevant files into a " \ 146 print "((Yes)) - I want to create and copy relevant files into a " \
147 "Pepper subdirectory" 147 "Pepper subdirectory"
148 print "((No)) - I am not interested or will set up the configuration later" 148 print "((No)) - I am not interested or will set up the configuration later"
149 ppapi_answer = raw_input().strip() 149 ppapi_answer = raw_input().strip()
150 if ppapi_answer.lower() == "yes" or ppapi_answer.lower() == "y": 150 if ppapi_answer.lower() == "yes" or ppapi_answer.lower() == "y":
151 options.install_ppapi = True 151 options.install_ppapi = True
152 print "Confirmed installer will include PPAPI platform."
152 else: 153 else:
153 options.install_ppapi = False 154 options.install_ppapi = False
154 print "Will not install PPAPI platform during installation." 155 print "Will not install PPAPI platform during installation."
155 156
156 print "\nBegin installing components..." 157 print "\nBegin installing components..."
157 158
158 try: 159 try:
159 # Copy the necessary files into place. 160 # Copy the necessary files into place.
160 for file_name in ADDIN_FILES: 161 for file_name in ADDIN_FILES:
161 shutil.copy(os.path.join(SCRIPT_DIR, file_name), addin_directory) 162 shutil.copy(os.path.join(SCRIPT_DIR, file_name), addin_directory)
(...skipping 21 matching lines...) Expand all
183 except shutil.Error as e: 184 except shutil.Error as e:
184 print "Error while copying file. Please ensure file is not in use." 185 print "Error while copying file. Please ensure file is not in use."
185 print e 186 print e
186 except WindowsError as e: 187 except WindowsError as e:
187 if e.winerror == 5: 188 if e.winerror == 5:
188 print "Access denied error. Please ensure Visual Studio and MSBuild" 189 print "Access denied error. Please ensure Visual Studio and MSBuild"
189 print "processes are closed." 190 print "processes are closed."
190 else: 191 else:
191 raise 192 raise
192 193
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698