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

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

Issue 811283002: [Installer] Cleaning up dead code for App Launcher / App Host installs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment fix. Created 5 years, 10 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
« no previous file with comments | « chrome/installer/util/master_preferences_constants.cc ('k') | chrome/installer/util/product.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 """Generates .h and .rc files for installer strings. Run "python 6 """Generates .h and .rc files for installer strings. Run "python
7 create_string_rc.py" for usage details. 7 create_string_rc.py" for usage details.
8 8
9 This script generates an rc file and header (NAME.{rc,h}) to be included in 9 This script generates an rc file and header (NAME.{rc,h}) to be included in
10 setup.exe. The rc file includes translations for strings pulled from the given 10 setup.exe. The rc file includes translations for strings pulled from the given
(...skipping 29 matching lines...) Expand all
40 sys.path.append(os.path.join(BASEDIR, '../../../../tools/grit')) 40 sys.path.append(os.path.join(BASEDIR, '../../../../tools/grit'))
41 sys.path.append(os.path.join(BASEDIR, '../../../../tools/python')) 41 sys.path.append(os.path.join(BASEDIR, '../../../../tools/python'))
42 42
43 from grit.extern import tclib 43 from grit.extern import tclib
44 44
45 # The IDs of strings we want to import from the .grd files and include in 45 # The IDs of strings we want to import from the .grd files and include in
46 # setup.exe's resources. 46 # setup.exe's resources.
47 STRING_IDS = [ 47 STRING_IDS = [
48 'IDS_PRODUCT_NAME', 48 'IDS_PRODUCT_NAME',
49 'IDS_SXS_SHORTCUT_NAME', 49 'IDS_SXS_SHORTCUT_NAME',
50 'IDS_PRODUCT_APP_LAUNCHER_NAME', 50 'IDS_PRODUCT_APP_LAUNCHER_NAME', # Used in App Launcher registry.
51 'IDS_PRODUCT_BINARIES_NAME', 51 'IDS_PRODUCT_BINARIES_NAME',
52 'IDS_PRODUCT_DESCRIPTION', 52 'IDS_PRODUCT_DESCRIPTION',
53 'IDS_UNINSTALL_CHROME', 53 'IDS_UNINSTALL_CHROME',
54 'IDS_ABOUT_VERSION_COMPANY_NAME', 54 'IDS_ABOUT_VERSION_COMPANY_NAME',
55 'IDS_INSTALL_HIGHER_VERSION', 55 'IDS_INSTALL_HIGHER_VERSION',
56 'IDS_INSTALL_HIGHER_VERSION_APP_LAUNCHER',
57 'IDS_INSTALL_FAILED', 56 'IDS_INSTALL_FAILED',
58 'IDS_SAME_VERSION_REPAIR_FAILED', 57 'IDS_SAME_VERSION_REPAIR_FAILED',
59 'IDS_SETUP_PATCH_FAILED', 58 'IDS_SETUP_PATCH_FAILED',
60 'IDS_INSTALL_OS_NOT_SUPPORTED', 59 'IDS_INSTALL_OS_NOT_SUPPORTED',
61 'IDS_INSTALL_OS_ERROR', 60 'IDS_INSTALL_OS_ERROR',
62 'IDS_INSTALL_TEMP_DIR_FAILED', 61 'IDS_INSTALL_TEMP_DIR_FAILED',
63 'IDS_INSTALL_UNCOMPRESSION_FAILED', 62 'IDS_INSTALL_UNCOMPRESSION_FAILED',
64 'IDS_INSTALL_INVALID_ARCHIVE', 63 'IDS_INSTALL_INVALID_ARCHIVE',
65 'IDS_INSTALL_INSUFFICIENT_RIGHTS', 64 'IDS_INSTALL_INSUFFICIENT_RIGHTS',
66 'IDS_INSTALL_NO_PRODUCTS_TO_UPDATE', 65 'IDS_INSTALL_NO_PRODUCTS_TO_UPDATE',
67 'IDS_INSTALL_MULTI_INSTALLATION_EXISTS', 66 'IDS_INSTALL_MULTI_INSTALLATION_EXISTS',
68 'IDS_INSTALL_INCONSISTENT_UPDATE_POLICY', 67 'IDS_INSTALL_INCONSISTENT_UPDATE_POLICY',
69 'IDS_OEM_MAIN_SHORTCUT_NAME', 68 'IDS_OEM_MAIN_SHORTCUT_NAME',
70 'IDS_SHORTCUT_TOOLTIP', 69 'IDS_SHORTCUT_TOOLTIP',
71 'IDS_SHORTCUT_NEW_WINDOW', 70 'IDS_SHORTCUT_NEW_WINDOW',
72 'IDS_APP_LAUNCHER_PRODUCT_DESCRIPTION',
73 'IDS_APP_LAUNCHER_SHORTCUT_TOOLTIP',
74 'IDS_UNINSTALL_APP_LAUNCHER',
75 'IDS_APP_LIST_SHORTCUT_NAME', 71 'IDS_APP_LIST_SHORTCUT_NAME',
76 'IDS_APP_LIST_SHORTCUT_NAME_CANARY', 72 'IDS_APP_LIST_SHORTCUT_NAME_CANARY',
77 'IDS_APP_SHORTCUTS_SUBDIR_NAME', 73 'IDS_APP_SHORTCUTS_SUBDIR_NAME',
78 'IDS_APP_SHORTCUTS_SUBDIR_NAME_CANARY', 74 'IDS_APP_SHORTCUTS_SUBDIR_NAME_CANARY',
79 'IDS_INBOUND_MDNS_RULE_NAME', 75 'IDS_INBOUND_MDNS_RULE_NAME',
80 'IDS_INBOUND_MDNS_RULE_NAME_CANARY', 76 'IDS_INBOUND_MDNS_RULE_NAME_CANARY',
81 'IDS_INBOUND_MDNS_RULE_DESCRIPTION', 77 'IDS_INBOUND_MDNS_RULE_DESCRIPTION',
82 'IDS_INBOUND_MDNS_RULE_DESCRIPTION_CANARY', 78 'IDS_INBOUND_MDNS_RULE_DESCRIPTION_CANARY',
83 ] 79 ]
84 80
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 419
424 420
425 def main(): 421 def main():
426 args = ParseCommandLine() 422 args = ParseCommandLine()
427 StringRcMaker(args.name, args.inputs, args.outdir).MakeFiles() 423 StringRcMaker(args.name, args.inputs, args.outdir).MakeFiles()
428 return 0 424 return 0
429 425
430 426
431 if '__main__' == __name__: 427 if '__main__' == __name__:
432 sys.exit(main()) 428 sys.exit(main())
OLDNEW
« no previous file with comments | « chrome/installer/util/master_preferences_constants.cc ('k') | chrome/installer/util/product.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698