Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vista UAC/elevation support for bdist_wininst #46833

Closed
mhammond opened this issue Apr 8, 2008 · 3 comments
Closed

Vista UAC/elevation support for bdist_wininst #46833

mhammond opened this issue Apr 8, 2008 · 3 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@mhammond
Copy link
Contributor

mhammond commented Apr 8, 2008

BPO 2581
Nosy @mhammond, @theller
Files
  • bdist_wininst_uac.patch: patch adding uac capabilities to bdist_wininst
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/mhammond'
    closed_at = <Date 2008-05-03.00:14:01.400>
    created_at = <Date 2008-04-08.02:43:06.872>
    labels = ['type-bug', 'library']
    title = 'Vista UAC/elevation support for bdist_wininst'
    updated_at = <Date 2010-06-01.19:59:35.475>
    user = 'https://github.com/mhammond'

    bugs.python.org fields:

    activity = <Date 2010-06-01.19:59:35.475>
    actor = 'techtonik'
    assignee = 'mhammond'
    closed = True
    closed_date = <Date 2008-05-03.00:14:01.400>
    closer = 'mhammond'
    components = ['Distutils']
    creation = <Date 2008-04-08.02:43:06.872>
    creator = 'mhammond'
    dependencies = []
    files = ['9978']
    hgrepos = []
    issue_num = 2581
    keywords = ['patch']
    message_count = 3.0
    messages = ['65139', '66135', '106854']
    nosy_count = 3.0
    nosy_names = ['mhammond', 'theller', 'techtonik']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue2581'
    versions = ['Python 2.6']

    @mhammond
    Copy link
    Contributor Author

    mhammond commented Apr 8, 2008

    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
    ShellExecute.

    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.

    @mhammond mhammond self-assigned this Apr 8, 2008
    @mhammond mhammond added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Apr 8, 2008
    @mhammond
    Copy link
    Contributor Author

    mhammond commented May 3, 2008

    Checked in as r62636

    @mhammond mhammond closed this as completed May 3, 2008
    @techtonik
    Copy link
    Mannequin

    techtonik mannequin commented Jun 1, 2010

    Doesn't seem to work anymore. Please, see:
    http://bugs.python.org/issue8870
    http://bugs.python.org/issue8871

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant