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

Side by Side Diff: chrome/installer/util/prebuild/create_string_rc.py

Issue 7087030: Upgrade all multi-install products present on the system when the installer is run with only the ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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/python 1 #!/usr/bin/python
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 """This script generates an rc file and header (setup_strings.{rc,h}) to be 6 """This script generates an rc file and header (setup_strings.{rc,h}) to be
7 included in setup.exe. The rc file includes translations for strings pulled 7 included in setup.exe. The rc file includes translations for strings pulled
8 from generated_resource.grd and the localized .xtb files. 8 from generated_resource.grd and the localized .xtb files.
9 9
10 The header file includes IDs for each string, but also has values to allow 10 The header file includes IDs for each string, but also has values to allow
11 getting a string based on a language offset. For example, the header file 11 getting a string based on a language offset. For example, the header file
12 looks like this: 12 looks like this:
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 'IDS_INSTALL_FAILED', 54 'IDS_INSTALL_FAILED',
55 'IDS_SAME_VERSION_REPAIR_FAILED', 55 'IDS_SAME_VERSION_REPAIR_FAILED',
56 'IDS_SAME_VERSION_REPAIR_FAILED_CF', 56 'IDS_SAME_VERSION_REPAIR_FAILED_CF',
57 'IDS_SETUP_PATCH_FAILED', 57 'IDS_SETUP_PATCH_FAILED',
58 'IDS_INSTALL_OS_NOT_SUPPORTED', 58 'IDS_INSTALL_OS_NOT_SUPPORTED',
59 'IDS_INSTALL_OS_ERROR', 59 'IDS_INSTALL_OS_ERROR',
60 'IDS_INSTALL_TEMP_DIR_FAILED', 60 'IDS_INSTALL_TEMP_DIR_FAILED',
61 'IDS_INSTALL_UNCOMPRESSION_FAILED', 61 'IDS_INSTALL_UNCOMPRESSION_FAILED',
62 'IDS_INSTALL_INVALID_ARCHIVE', 62 'IDS_INSTALL_INVALID_ARCHIVE',
63 'IDS_INSTALL_INSUFFICIENT_RIGHTS', 63 'IDS_INSTALL_INSUFFICIENT_RIGHTS',
64 'IDS_INSTALL_NO_PRODUCTS_TO_UPDATE',
64 'IDS_UNINSTALL_FAILED', 65 'IDS_UNINSTALL_FAILED',
65 'IDS_UNINSTALL_COMPLETE', 66 'IDS_UNINSTALL_COMPLETE',
66 'IDS_INSTALL_DIR_IN_USE', 67 'IDS_INSTALL_DIR_IN_USE',
67 'IDS_INSTALL_NON_MULTI_INSTALLATION_EXISTS', 68 'IDS_INSTALL_NON_MULTI_INSTALLATION_EXISTS',
68 'IDS_INSTALL_MULTI_INSTALLATION_EXISTS', 69 'IDS_INSTALL_MULTI_INSTALLATION_EXISTS',
69 'IDS_INSTALL_CONFLICTING_CHANNEL_EXISTS', 70 'IDS_INSTALL_CONFLICTING_CHANNEL_EXISTS',
70 'IDS_INSTALL_READY_MODE_REQUIRES_CHROME', 71 'IDS_INSTALL_READY_MODE_REQUIRES_CHROME',
71 'IDS_OEM_MAIN_SHORTCUT_NAME', 72 'IDS_OEM_MAIN_SHORTCUT_NAME',
72 'IDS_SHORTCUT_TOOLTIP', 73 'IDS_SHORTCUT_TOOLTIP',
73 ] 74 ]
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 kFilebase = os.path.join(argv[1], 'installer_util_strings') 227 kFilebase = os.path.join(argv[1], 'installer_util_strings')
227 WriteRCFile(translated_strings, kFilebase) 228 WriteRCFile(translated_strings, kFilebase)
228 WriteHeaderFile(translated_strings, kFilebase) 229 WriteHeaderFile(translated_strings, kFilebase)
229 230
230 if '__main__' == __name__: 231 if '__main__' == __name__:
231 if len(sys.argv) < 2: 232 if len(sys.argv) < 2:
232 print 'Usage:\n %s <output_directory> [branding]' % sys.argv[0] 233 print 'Usage:\n %s <output_directory> [branding]' % sys.argv[0]
233 sys.exit(1) 234 sys.exit(1)
234 # Use optparse to parse command line flags. 235 # Use optparse to parse command line flags.
235 main(sys.argv) 236 main(sys.argv)
OLDNEW
« chrome/installer/setup/setup_main.cc ('K') | « chrome/installer/setup/setup_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698