Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c4c306

Browse files
committed
Merged revisions 66304-66305,66307 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r66304 | martin.v.loewis | 2008-09-08 14:02:45 +0200 (Mo, 08 Sep 2008) | 2 lines Allow passing the MSI file name to merge.py. ........ r66305 | martin.v.loewis | 2008-09-08 15:50:10 +0200 (Mo, 08 Sep 2008) | 3 lines Issue #2271: Set SecureCustomProperties so that installation will properly use the TARGETDIR even for unprivileged users. ........ r66307 | martin.v.loewis | 2008-09-08 18:15:38 +0200 (Mo, 08 Sep 2008) | 1 line Add UUIDs for upcoming releases ........
1 parent 9a46cab commit 1c4c306

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

Tools/msi/merge.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
import msilib,os,win32com,tempfile
1+
import msilib,os,win32com,tempfile,sys
22
PCBUILD="PCBuild"
33
from config import *
44

55
Win64 = "amd64" in PCBUILD
66

77
mod_dir = os.path.join(os.environ["ProgramFiles"], "Common Files", "Merge Modules")
8+
msi = None
9+
if len(sys.argv)==2:
10+
msi = sys.argv[1]
811
if Win64:
912
modules = ["Microsoft_VC90_CRT_x86.msm", "policy_8_0_Microsoft_VC80_CRT_x86_x64.msm"]
10-
msi = "python-%s.amd64.msi" % full_current_version
13+
if not msi: msi = "python-%s.amd64.msi" % full_current_version
1114
else:
1215
modules = ["Microsoft_VC90_CRT_x86.msm","policy_8_0_Microsoft_VC80_CRT_x86.msm"]
13-
msi = "python-%s.msi" % full_current_version
16+
if not msi: msi = "python-%s.msi" % full_current_version
1417
for i, n in enumerate(modules):
1518
modules[i] = os.path.join(mod_dir, n)
1619

Tools/msi/msi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ def remove_old_versions(db):
251251
(upgrade_code_snapshot, start, "%s.%d.0" % (major, int(minor)+1),
252252
None, migrate_features, None, "REMOVEOLDSNAPSHOT")])
253253
props = "REMOVEOLDSNAPSHOT;REMOVEOLDVERSION"
254+
255+
props += ";TARGETDIR;DLLDIR"
254256
# Installer collects the product codes of the earlier releases in
255257
# these properties. In order to allow modification of the properties,
256258
# they must be declared as secure. See "SecureCustomProperties Property"

Tools/msi/uuids.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
'2.6.104': '{dc6ed634-474a-4a50-a547-8de4b7491e53}', # 2.6a4
4444
'2.6.111': '{3f82079a-5bee-4c4a-8a41-8292389e24ae}', # 2.6b1
4545
'2.6.112': '{8a0e5970-f3e6-4737-9a2b-bc5ff0f15fb5}', # 2.6b2
46+
'2.6.113': '{df4f5c21-6fcc-4540-95de-85feba634e76}', # 2.6b3
47+
'2.6.121': '{bbd34464-ddeb-4028-99e5-f16c4a8fbdb3}', # 2.6c1
48+
'2.6.122': '{8f64787e-a023-4c60-bfee-25d3a3f592c6}', # 2.6c2
49+
'2.6.150': '{110eb5c4-e995-4cfb-ab80-a5f315bea9e8}', # 2.6.0
4650
'3.0.101': '{8554263a-3242-4857-9359-aa87bc2c58c2}', # 3.0a1
4751
'3.0.102': '{692d6e2c-f0ac-40b8-a133-7191aeeb67f9}', # 3.0a2
4852
'3.0.103': '{49cb2995-751a-4753-be7a-d0b1bb585e06}', # 3.0a3

0 commit comments

Comments
 (0)