A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://codereview.appspot.com/4023055/diff/1/Tools/msi/msi.py below:

Tools/msi/msi.py - Issue 4023055: MSI: Add installation dir to %PATH%

OLD NEW 1 # Python MSI Generator 1 # Python MSI Generator 2 # (C) 2003 Martin v. Loewis 2 # (C) 2003 Martin v. Loewis 3 # See "FOO" in comments refers to MSDN sections with the title FOO. 3 # See "FOO" in comments refers to MSDN sections with the title FOO. 4 import msilib, schema, sequence, os, glob, time, re, shutil, zipfile 4 import msilib, schema, sequence, os, glob, time, re, shutil, zipfile 5 from msilib import Feature, CAB, Directory, Dialog, Binary, add_data 5 from msilib import Feature, CAB, Directory, Dialog, Binary, add_data 6 import uisample 6 import uisample 7 from win32com.client import constants 7 from win32com.client import constants 8 from distutils.spawn import find_executable 8 from distutils.spawn import find_executable 9 from uuids import product_codes 9 from uuids import product_codes 10 import tempfile 10 import tempfile (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... 456 ("CompileGrammar", "COMPILEALL", 6802), 456 ("CompileGrammar", "COMPILEALL", 6802), 457 ]) 457 ]) 458 add_data(db, "AdminExecuteSequence", 458 add_data(db, "AdminExecuteSequence", 459 [("InitialTargetDir", 'TARGETDIR=""', 750), 459 [("InitialTargetDir", 'TARGETDIR=""', 750), 460 ("SetDLLDirToTarget", 'DLLDIR=""', 751), 460 ("SetDLLDirToTarget", 'DLLDIR=""', 751), 461 ("CompilePyc", "COMPILEALL", 6800), 461 ("CompilePyc", "COMPILEALL", 6800), 462 ("CompilePyo", "COMPILEALL", 6801), 462 ("CompilePyo", "COMPILEALL", 6801), 463 ("CompileGrammar", "COMPILEALL", 6802), 463 ("CompileGrammar", "COMPILEALL", 6802), 464 ]) 464 ]) 465 465 466 # Add target dir to PATH 467 add_data(db, "Environment", 468 [("Environmnent", "=-*PATH", "[~];[TARGETDIR]", "python.exe"),ยท 469 ]) 470 466 ##################################################################### 471 ##################################################################### 467 # Standard dialogs: FatalError, UserExit, ExitDialog 472 # Standard dialogs: FatalError, UserExit, ExitDialog 468 fatal=PyDialog(db, "FatalError", x, y, w, h, modal, title, 473 fatal=PyDialog(db, "FatalError", x, y, w, h, modal, title, 469 "Finish", "Finish", "Finish") 474 "Finish", "Finish", "Finish") 470 fatal.title("[ProductName] Installer ended prematurely") 475 fatal.title("[ProductName] Installer ended prematurely") 471 fatal.back("< Back", "Finish", active = 0) 476 fatal.back("< Back", "Finish", active = 0) 472 fatal.cancel("Cancel", "Back", active = 0) 477 fatal.cancel("Cancel", "Back", active = 0) 473 fatal.text("Description1", 135, 70, 220, 80, 0x30003, 478 fatal.text("Description1", 135, 70, 220, 80, 0x30003, 474 "[ProductName] setup ended prematurely because of an error. Your system has not been modified. To install this program at a later time, please run the installation again.") 479 "[ProductName] setup ended prematurely because of an error. Your system has not been modified. To install this program at a later time, please run the installation again.") 475 fatal.text("Description2", 135, 155, 220, 20, 0x30003, 480 fatal.text("Description2", 135, 155, 220, 20, 0x30003, (...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... 1389 1394 1390 merge(msiname, "SharedCRT", "TARGETDIR", modules) 1395 merge(msiname, "SharedCRT", "TARGETDIR", modules) 1391 1396 1392 # certname (from config.py) should be (a substring of) 1397 # certname (from config.py) should be (a substring of) 1393 # the certificate subject, e.g. "Python Software Foundation" 1398 # the certificate subject, e.g. "Python Software Foundation" 1394 if certname: 1399 if certname: 1395 os.system('signtool sign /n "%s" /t http://timestamp.verisign.com/scripts/ti mestamp.dll %s' % (certname, msiname)) 1400 os.system('signtool sign /n "%s" /t http://timestamp.verisign.com/scripts/ti mestamp.dll %s' % (certname, msiname)) 1396 1401 1397 if pdbzip: 1402 if pdbzip: 1398 build_pdbzip() 1403 build_pdbzip() OLD NEW

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4