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
Windows All Users installation places uninstaller in user profile #69353
A system-wide installation on Windows (using InstallAllUsers=1) still places the uninstall executable into the profile (%LOCALAPPDATA%) of the installing user. If that user profile is deleted, the (system-wide) installation cannot be removed anymore.
Ceterum censeo: This bug would have been avoided by using MSI as the distribution package format.
Burn is always started in the per-user scope so that we can do per-user installs without elevating, but it looks like we need to manually change this once we know it's an all-users install.
Where is the API documented to change the install scope dynamically? I see where it's apparently defined in the burn manifest (extracted from the executable) as PerMachine="no":
After discussing it on the WiX mailing list, this definitely requires a change to WiX.
Currently, as soon as you include any per-user packages in your bundle the entire registration is forced to per-user regardless of whether or not they are ever installed.
I'm going to propose a change where the bootstrap application can assert that the bundle should be registered for the whole machine, so that when we start installing we can correct it. Can't be sure it'll be available for 3.5.1, but some time in 3.5's lifetime we should get this fixed.
In my opinion, this is an important bug that cannot wait indefinitely.
Ceterum censeo (yes, there had to be one): This is particularly true when considering that a (relatively) simple fix exists that can be done by the Python project alone, with no external dependencies. I am referring, of course, to dropping the burn bundle entirely and shipping a single MSI package again, rather than 43 (!) of them (across x86 and amd64) with an average of ~190 and a median of 8 (eight) installed files per package in 3.5.2, counting pip.
Christian, your desire for a single MSI is well known, and repeatedly stating that desire is far more likely to raise ire rather than spur change. No, you did not need to include "ceterum censeo".
The installer system that Steve created for us has many features that I and many others would be very sad to see disappear again, and which cannot be supported by a single MSI distribution. In particular, selecting which components to install and only downloading those components is a wonderful feature for anyone with a low-bandwidth or metered internet connection.
If the current installer is unusable to you, feel free to forward-port the old 3.4 installer system and create your own installers. Alternately, feel free to provide patches to resolve this or any other issues you have with the current installer.
I won't be changing the official releases to be a single MSI again - the experience is too hostile towards regular users.
As my (volunteer) time allows, I've been working on resolving the issue in WiX and we are totally capable of moving to a private build of WiX that includes a fix. There is no need to wait for 4.0.
If you would like a single MSI installer, I'd suggest offering some time (or paying someone to spend their time) to develop one and distribute it independently. The old installer might be a good starting point, but it had a range of issues that have been resolved by the new installer. There are also a number of features available in the new installer that are not available under a single MSI (such as per-user installs, installing/skipping the CRT, and disabling MAX_PATH limitations). However, if your installer becomes more popular than the official one, it will be strong evidence that people would rather have one monolithic installer with less reliable options, and we can consider switching back to that format.
I have been reviewing the Install process as we need to start installing / patching Python and I have seen the same issue as mentioned below however the difference for me is I am running the install on a Silent command line.
I cannot seem to override "AllUsers" Property using the command line as WiX logs the following: "Ignoring attempt to set non-overridable variable: 'AllUsers'." If this parameter was made overridable I believe this would then allow the Bootstrapper to be listed under all users Uninstall area rather than the current user (or in my case it gets written to HKEY_USERS\.Default\... (which is really unhelpful) as the installer is being run under the system context).
changed the title [-]Windows AllUsers installation places uninstaller in user profile[/-][+]Windows All Users installation places uninstaller in user profile[/+]on Apr 24, 2021
only the user who initiated the install will have it show within installed Programs and Features
depending on %USERPROFILE% ACL only this user is able to change or even view what is within his %USERPROFILE%
Since you are able to uninstall the version of python installed with the installer by giving option /uninstall you are able to remove what was installed globally having AllUsers=1. The uninstall will in such cases not remove registry hives created by the installer in the private registry area for the user who installed. And: it will not remove the registered uninstaller. The user who installed can select the "installed" python from there, right click it and select uninstall. He/she will the receive an error stating there was an error uninstalling. The Entry within will remain.
Within a company context or even private users who do not have a local admin, because they have a domain, the install may run under adm-user-one. If user adm-user-two uninstalls, then all registry entries the uninstall created for user adm-user-one remain.
If the user who installed was SYSTEM (suppose SCCM, or registry entries to deploy by WSUS) SYSTEM does not have rights to access the registry hive and parts of %USERPROFILE% of adm-user-one and will never remove any registry entry private to this user. Same for programs written on disk: SYSTEM may have access to read, but not to remove or execute. Other way round it is the same problem: the user adm-user-one does not have rights to access parts belonging only to SYSTEM.
With a locked down system or domain you are running in a variety of problems trying to:
uninstall
reinstall
remove
depending on who initiated the install and who initiates uninstalling, upgrades or removes. Windows does not have one "god of the system" – it is more of the olymp with lots of gods, but none of them has all the power the one and only UNIX "god" – root – has.
The installer referred to in this issue has now been removed (#153511), and so this issue is expired. Please use the Python install manager to install Python, and file any issues on the pymanager repo.
Activity
chrullrich commentedon Sep 18, 2015
A system-wide installation on Windows (using InstallAllUsers=1) still places the uninstall executable into the profile (%LOCALAPPDATA%) of the installing user. If that user profile is deleted, the (system-wide) installation cannot be removed anymore.
Ceterum censeo: This bug would have been avoided by using MSI as the distribution package format.
zooba commentedon Sep 23, 2015
Burn is always started in the per-user scope so that we can do per-user installs without elevating, but it looks like we need to manually change this once we know it's an all-users install.
eryksun commentedon Sep 23, 2015
Where is the API documented to change the install scope dynamically? I see where it's apparently defined in the burn manifest (extracted from the executable) as PerMachine="no":
zooba commentedon Sep 23, 2015
Not sure yet :)
There are a lot of undocumented (or not-yet-documented) APIs accessible from the bootstrap app and I haven't gone through them yet - see https://github.com/wixtoolset/wix3/tree/develop/src/libs, probably dutil.
It may also be something that we have to request or contribute to WiX.
zooba commentedon Sep 29, 2015
After discussing it on the WiX mailing list, this definitely requires a change to WiX.
Currently, as soon as you include any per-user packages in your bundle the entire registration is forced to per-user regardless of whether or not they are ever installed.
I'm going to propose a change where the bootstrap application can assert that the bundle should be registered for the whole machine, so that when we start installing we can correct it. Can't be sure it'll be available for 3.5.1, but some time in 3.5's lifetime we should get this fixed.
zooba commentedon Sep 29, 2015
WiX issue is http://wixtoolset.org/issues/4914/
chrullrich commentedon Oct 25, 2016
This bug has been open for over a year and two subsequent releases, and its planned resolution depends on a change to WiX. The related WiX bug (see comment above) is scheduled to be implemented in WiX 4.0, which has no prospective release date. According to <https://github.com/wixtoolset/issues/milestone/4\>, only 27 percent of the issues currently planned for this release are resolved.
In my opinion, this is an important bug that cannot wait indefinitely.
Ceterum censeo (yes, there had to be one): This is particularly true when considering that a (relatively) simple fix exists that can be done by the Python project alone, with no external dependencies. I am referring, of course, to dropping the burn bundle entirely and shipping a single MSI package again, rather than 43 (!) of them (across x86 and amd64) with an average of ~190 and a median of 8 (eight) installed files per package in 3.5.2, counting pip.
zware commentedon Oct 25, 2016
Christian, your desire for a single MSI is well known, and repeatedly stating that desire is far more likely to raise ire rather than spur change. No, you did not need to include "ceterum censeo".
The installer system that Steve created for us has many features that I and many others would be very sad to see disappear again, and which cannot be supported by a single MSI distribution. In particular, selecting which components to install and only downloading those components is a wonderful feature for anyone with a low-bandwidth or metered internet connection.
If the current installer is unusable to you, feel free to forward-port the old 3.4 installer system and create your own installers. Alternately, feel free to provide patches to resolve this or any other issues you have with the current installer.
zooba commentedon Oct 25, 2016
I won't be changing the official releases to be a single MSI again - the experience is too hostile towards regular users.
As my (volunteer) time allows, I've been working on resolving the issue in WiX and we are totally capable of moving to a private build of WiX that includes a fix. There is no need to wait for 4.0.
If you would like a single MSI installer, I'd suggest offering some time (or paying someone to spend their time) to develop one and distribute it independently. The old installer might be a good starting point, but it had a range of issues that have been resolved by the new installer. There are also a number of features available in the new installer that are not available under a single MSI (such as per-user installs, installing/skipping the CRT, and disabling MAX_PATH limitations). However, if your installer becomes more popular than the official one, it will be strong evidence that people would rather have one monolithic installer with less reliable options, and we can consider switching back to that format.
zooba commentedon Aug 16, 2017
There are no more binary installers for 3.5, so updating the target versions.
I have some ideas about how to do this and will hopefully get time at the dev sprints to try them out.
beefy80 commentedon Jan 29, 2021
I have been reviewing the Install process as we need to start installing / patching Python and I have seen the same issue as mentioned below however the difference for me is I am running the install on a Silent command line.
I cannot seem to override "AllUsers" Property using the command line as WiX logs the following: "Ignoring attempt to set non-overridable variable: 'AllUsers'." If this parameter was made overridable I believe this would then allow the Bootstrapper to be listed under all users Uninstall area rather than the current user (or in my case it gets written to HKEY_USERS\.Default\... (which is really unhelpful) as the installer is being run under the system context).
[-]Windows AllUsers installation places uninstaller in user profile[/-][+]Windows All Users installation places uninstaller in user profile[/+]tps800 commentedon Nov 27, 2022
This has other side effects not mentioned:
Since you are able to uninstall the version of python installed with the installer by giving option
/uninstallyou are able to remove what was installed globally havingAllUsers=1. The uninstall will in such cases not remove registry hives created by the installer in the private registry area for the user who installed. And: it will not remove the registered uninstaller. The user who installed can select the "installed" python from there, right click it and select uninstall. He/she will the receive an error stating there was an error uninstalling. The Entry within will remain.Within a company context or even private users who do not have a local admin, because they have a domain, the install may run under adm-user-one. If user adm-user-two uninstalls, then all registry entries the uninstall created for user adm-user-one remain.
If the user who installed was SYSTEM (suppose SCCM, or registry entries to deploy by WSUS) SYSTEM does not have rights to access the registry hive and parts of %USERPROFILE% of adm-user-one and will never remove any registry entry private to this user. Same for programs written on disk: SYSTEM may have access to read, but not to remove or execute. Other way round it is the same problem: the user adm-user-one does not have rights to access parts belonging only to SYSTEM.
With a locked down system or domain you are running in a variety of problems trying to:
depending on who initiated the install and who initiates uninstalling, upgrades or removes. Windows does not have one "god of the system" – it is more of the olymp with lots of gods, but none of them has all the power the one and only UNIX "god" – root – has.
zooba commentedon Jul 20, 2026
The installer referred to in this issue has now been removed (#153511), and so this issue is expired. Please use the Python install manager to install Python, and file any issues on the pymanager repo.