summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-06-14 14:24:47 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-06-14 14:24:47 (GMT)
commitfd82f2e86a8c0de59657465c68b0c442f5c59b35 (patch)
treeee0966599bd6d36b813159ceddfec0ec94a774c2 /Tools
parent945c632dffda0353ab4e78ebae5deb6dfa79eb2a (diff)
downloadcpython-fd82f2e86a8c0de59657465c68b0c442f5c59b35.zip
cpython-fd82f2e86a8c0de59657465c68b0c442f5c59b35.tar.gz
cpython-fd82f2e86a8c0de59657465c68b0c442f5c59b35.tar.bz2
Disable UAC by default.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/msi/msilib.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Tools/msi/msilib.py b/Tools/msi/msilib.py
index d2f8764..6f49b4c 100644
--- a/Tools/msi/msilib.py
+++ b/Tools/msi/msilib.py
@@ -289,7 +289,8 @@ def add_stream(db, name, path):
def init_database(name, schema,
ProductName, ProductCode, ProductVersion,
- Manufacturer):
+ Manufacturer,
+ request_uac = False):
try:
os.unlink(name)
except OSError:
@@ -311,7 +312,11 @@ def init_database(name, schema,
si.SetProperty(PID_AUTHOR, Manufacturer)
si.SetProperty(PID_TEMPLATE, msi_type)
si.SetProperty(PID_REVNUMBER, gen_uuid())
- si.SetProperty(PID_WORDCOUNT, 2) # long file names, compressed, original media
+ if request_uac:
+ wc = 2 # long file names, compressed, original media
+ else:
+ wc = 2 | 8 # +never invoke UAC
+ si.SetProperty(PID_WORDCOUNT, wc)
si.SetProperty(PID_PAGECOUNT, 200)
si.SetProperty(PID_APPNAME, "Python MSI Library")
# XXX more properties