You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
friendly errors for UAC misbehavior in windows installers #53154
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/tarekziade'closed_at=<Date2021-02-03.18:16:23.056>created_at=<Date2010-06-05.16:44:59.669>labels= ['library']
title='friendly errors for UAC misbehavior in windows installers'updated_at=<Date2021-02-03.18:16:23.055>user='https://bugs.python.org/techtonik'
The problem investigated in bpo-8870 detected that bdist_wininst installers fail in Vista and Windows 7 with enabled UAC (user access control) when run from local drives with non-MS file systems and from network drives.
The error message returned in this case is not explanative at all.
"Failed to start elevated process (ShellExecute returned 5)"
Further investigation revealed that if network samba share requires authentication, and authentication passes, then the installer won't fail. Unfortunately, I can not setup network access to unauthenticated Samba shares right now to test behavior, but I attach installer generated with --user-access-control=force in case somebody can help.
The error message needs to be improved to give users immediate hint what Windows UAC doesn't allow to run privileged executables from non-MS file systems and/or network drives.
A proper user error message requires investigation of behavior on anonymous samba shares. Attaching patch to install.c with backlinks to relevant ticket descriptions.
changed the title [-]friendly errors for UAC errors in windows installers[/-][+]friendly errors for UAC misbehavior in windows installers[/+]on Jun 5, 2010
I’m not sure attaching binary executable files is helpful; if I ran Windows, I wouldn’t run them.
Select the 3.3 version for bugs that won’t be fixed to 3.2. Selecting both is redundant: 3.2 is current py3k trunk, it’s not a different branch than 3.3, in contrary to 2.6 and 2.7.
HTH
Can you please tell if this still applies now that distutils has been reverted to its previous stable state? Can you test with distutils2? Thanks in advance.
BreamoreBoy commented on Jun 22, 2014
BreamoreBoymannequin
Mannequin
More actions
The patches cannot be used as the OP hasn't signed the CLA.
Distutils is now deprecated (see PEP-632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils.
If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools
Activity
techtonik commentedon Jun 5, 2010
The problem investigated in bpo-8870 detected that bdist_wininst installers fail in Vista and Windows 7 with enabled UAC (user access control) when run from local drives with non-MS file systems and from network drives.
The error message returned in this case is not explanative at all.
"Failed to start elevated process (ShellExecute returned 5)"
Further investigation revealed that if network samba share requires authentication, and authentication passes, then the installer won't fail. Unfortunately, I can not setup network access to unauthenticated Samba shares right now to test behavior, but I attach installer generated with --user-access-control=force in case somebody can help.
The error message needs to be improved to give users immediate hint what Windows UAC doesn't allow to run privileged executables from non-MS file systems and/or network drives.
techtonik commentedon Jun 5, 2010
A proper user error message requires investigation of behavior on anonymous samba shares. Attaching patch to install.c with backlinks to relevant ticket descriptions.
[-]friendly errors for UAC errors in windows installers[/-][+]friendly errors for UAC misbehavior in windows installers[/+]merwok commentedon Jun 6, 2010
Side remarks about tracker process:
HTH
merwok commentedon Sep 30, 2010
Can you please tell if this still applies now that distutils has been reverted to its previous stable state? Can you test with distutils2? Thanks in advance.
BreamoreBoy commentedon Jun 22, 2014
The patches cannot be used as the OP hasn't signed the CLA.
zooba commentedon Feb 3, 2021
Distutils is now deprecated (see PEP-632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils.
If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools