[New-bugs-announce] [issue2581] Vista UAC/elevation support for bdist_wininst

Mark Hammond report at bugs.python.org
Tue Apr 8 04:43:07 CEST 2008

New submission from Mark Hammond <mhammond at users.sourceforge.net>:

The attached patch adds basic UAC support to bdist_wininst created
installers.  A new option '--user-access-control' has been added to
bdist_wininst, which is written to the INI file read by the installer. 
The installer reads this value: if it is 'force', elevation is always
requested, if it is 'auto', elevation is requested when Python is
installed in HKLM.  'none' (the default) means nothing UAC related
happens at all.

The elevation happens by having the installer re-execute itself using

I've also ensured the code builds for all versions of VS we support.  As
a result, it was necessary to change the old bdist_wininst project files
to point to the later zlib version Python itself uses.  All these
changes are in the patch.

assignee: mhammond
components: Distutils
files: bdist_wininst_uac.patch
keywords: patch, patch
messages: 65139
nosy: mhammond, theller
severity: normal
status: open
title: Vista UAC/elevation support for bdist_wininst
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file9978/bdist_wininst_uac.patch

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list