Skip to content

Windows All Users installation places uninstaller in user profile #69353

Closed as not planned

Description

@chrullrich
BPO 25166
Nosy @pfmoore, @tjguk, @zware, @eryksun, @zooba, @chrullrich

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/zooba'
closed_at = None
created_at = <Date 2015-09-18.11:18:10.548>
labels = ['type-bug', 'expert-installation', '3.9', '3.10', '3.8', 'OS-windows']
title = 'Windows All Users installation places uninstaller in user profile'
updated_at = <Date 2021-04-24.18:48:28.530>
user = 'https://github.com/chrullrich'

bugs.python.org fields:

activity = <Date 2021-04-24.18:48:28.530>
actor = 'xmha97'
assignee = 'steve.dower'
closed = False
closed_date = None
closer = None
components = ['Installation', 'Windows']
creation = <Date 2015-09-18.11:18:10.548>
creator = 'chrullrich'
dependencies = []
files = []
hgrepos = []
issue_num = 25166
keywords = []
message_count = 11.0
messages = ['250962', '251384', '251395', '251396', '251878', '251882', '279451', '279453', '279454', '300371', '385907']
nosy_count = 7.0
nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'eryksun', 'steve.dower', 'chrullrich', 'beefy80']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue25166'
versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

Activity

  1. chrullrich commented on Sep 18, 2015

    chrullrichmannequin
    MannequinAuthor

    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.

  2. zooba commented on Sep 23, 2015

    @zooba
    Member

    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.

  3. self-assigned this
    on Sep 23, 2015
  4. eryksun commented on Sep 23, 2015

    @eryksun
    Contributor

    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":

    <BurnManifest xmlns="http://schemas.microsoft.com/wix/2008/Burn">
      <....>
      <Registration Id="{e599f76f-2b95-44da-a280-77548b1b2a21}" 
                    ExecutableName="python-3.5.0-amd64.exe" 
                    PerMachine="no" 
                    Tag="" 
                    Version="3.5.150.0" 
                    ProviderKey="{e599f76f-2b95-44da-a280-77548b1b2a21}">
        <Arp Register="yes" 
             DisplayName="Python 3.5.0 (64-bit)" 
             DisplayVersion="3.5.150.0" 
             Publisher="Python Software Foundation" 
             AboutUrl="http://www.python.org/" 
             DisableModify="button"/>
      </Registration>
    
  5. zooba commented on Sep 23, 2015

    @zooba
    Member

    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.

  6. zooba commented on Sep 29, 2015

    @zooba
    Member

    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.

  7. chrullrich commented on Oct 25, 2016

    chrullrichmannequin
    MannequinAuthor

    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.

  8. zware commented on Oct 25, 2016

    @zware
    Member

    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.

  9. zooba commented on Oct 25, 2016

    @zooba
    Member

    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.

  10. zooba commented on Aug 16, 2017

    @zooba
    Member

    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.

  11. added
    3.7 (EOL)
    type-bug
    on Aug 16, 2017
  12. beefy80 commented on Jan 29, 2021

    beefy80mannequin
    Mannequin

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

  13. added
    3.9 (EOL)
    3.10 (EOL)
    and removed
    3.7 (EOL)
    on Mar 13, 2021
  14. changed the title [-]Windows AllUsers installation places uninstaller in user profile[/-] [+]Windows All Users installation places uninstaller in user profile[/+] on Apr 24, 2021
  15. transferred this issue fromon Apr 10, 2022
  16. tps800 commented on Nov 27, 2022

    @tps800

    This has other side effects not mentioned:

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

  17. zooba commented on Jul 20, 2026

    @zooba
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.10 (EOL)3.8 (EOL)3.9 (EOL)OS-windowstopic-installationtype-bug

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions