]> granicus.if.org Git - python/commitdiff
Merged revisions 66304-66305,66307 via svnmerge from
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 8 Sep 2008 16:27:54 +0000 (16:27 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 8 Sep 2008 16:27:54 +0000 (16:27 +0000)
svn+ssh://pythondev@svn.python.org/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
........

Tools/msi/merge.py
Tools/msi/msi.py
Tools/msi/uuids.py

index ff34b9354b08fffbc5a8e22d536a6ef3539cc7b6..412356765da6c0110208eadf1dfae35cf280762e 100644 (file)
@@ -1,16 +1,19 @@
-import msilib,os,win32com,tempfile\r
+import msilib,os,win32com,tempfile,sys\r
 PCBUILD="PCBuild"\r
 from config import *\r
 \r
 Win64 = "amd64" in PCBUILD\r
 \r
 mod_dir = os.path.join(os.environ["ProgramFiles"], "Common Files", "Merge Modules")\r
+msi = None\r
+if len(sys.argv)==2:\r
+    msi = sys.argv[1]\r
 if Win64:\r
     modules = ["Microsoft_VC90_CRT_x86.msm", "policy_8_0_Microsoft_VC80_CRT_x86_x64.msm"]\r
-    msi = "python-%s.amd64.msi" % full_current_version\r
+    if not msi: msi = "python-%s.amd64.msi" % full_current_version\r
 else:\r
     modules = ["Microsoft_VC90_CRT_x86.msm","policy_8_0_Microsoft_VC80_CRT_x86.msm"]\r
-    msi = "python-%s.msi" % full_current_version\r
+    if not msi: msi = "python-%s.msi" % full_current_version\r
 for i, n in enumerate(modules):\r
     modules[i] = os.path.join(mod_dir, n)\r
 \r
index ff76895896caa17e9318f2a75762ad314e1539a4..66457fbb1a4bdd3e9a4ed3d8cd8b4e3e7f211ad4 100644 (file)
@@ -251,6 +251,8 @@ def remove_old_versions(db):
              (upgrade_code_snapshot, start, "%s.%d.0" % (major, int(minor)+1),
               None, migrate_features, None, "REMOVEOLDSNAPSHOT")])
         props = "REMOVEOLDSNAPSHOT;REMOVEOLDVERSION"
+
+    props += ";TARGETDIR;DLLDIR"
     # Installer collects the product codes of the earlier releases in
     # these properties. In order to allow modification of the properties,
     # they must be declared as secure. See "SecureCustomProperties Property"
index 59d9bf4d00927fd0574532d6881d513ba0e0472f..98f14f082e16e74d86592656d1bbac3711e5d234 100644 (file)
@@ -43,6 +43,10 @@ product_codes = {
     '2.6.104': '{dc6ed634-474a-4a50-a547-8de4b7491e53}', # 2.6a4
     '2.6.111': '{3f82079a-5bee-4c4a-8a41-8292389e24ae}', # 2.6b1
     '2.6.112': '{8a0e5970-f3e6-4737-9a2b-bc5ff0f15fb5}', # 2.6b2
+    '2.6.113': '{df4f5c21-6fcc-4540-95de-85feba634e76}', # 2.6b3
+    '2.6.121': '{bbd34464-ddeb-4028-99e5-f16c4a8fbdb3}', # 2.6c1
+    '2.6.122': '{8f64787e-a023-4c60-bfee-25d3a3f592c6}', # 2.6c2
+    '2.6.150': '{110eb5c4-e995-4cfb-ab80-a5f315bea9e8}', # 2.6.0
     '3.0.101': '{8554263a-3242-4857-9359-aa87bc2c58c2}', # 3.0a1
     '3.0.102': '{692d6e2c-f0ac-40b8-a133-7191aeeb67f9}', # 3.0a2
     '3.0.103': '{49cb2995-751a-4753-be7a-d0b1bb585e06}', # 3.0a3