python / cpython

The Python programming language
https://www.python.org
Other
62.39k stars 29.96k forks source link

2.7.14 does not uninstall cleanly if installation was run as SYSTEM account (SCCM) #76230

Closed 77c13797-ea36-4124-a716-b91bbc59a2b9 closed 4 years ago

77c13797-ea36-4124-a716-b91bbc59a2b9 commented 6 years ago
BPO 32049
Nosy @pfmoore, @tjguk, @zware, @zooba, @niemalsnever

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: ```python assignee = None closed_at = created_at = labels = ['type-bug', 'expert-installation', 'OS-windows'] title = '2.7.14 does not uninstall cleanly if installation was run as SYSTEM account (SCCM)' updated_at = user = 'https://github.com/niemalsnever' ``` bugs.python.org fields: ```python activity = actor = 'zach.ware' assignee = 'none' closed = True closed_date = closer = 'zach.ware' components = ['Installation', 'Windows'] creation = creator = 'niemalsnever' dependencies = [] files = [] hgrepos = [] issue_num = 32049 keywords = [] message_count = 2.0 messages = ['306359', '367295'] nosy_count = 5.0 nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'steve.dower', 'niemalsnever'] pr_nums = [] priority = 'normal' resolution = 'out of date' stage = 'resolved' status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue32049' versions = ['Python 2.7'] ```

77c13797-ea36-4124-a716-b91bbc59a2b9 commented 6 years ago

If I install Python 2.7.14 on Windows (using the MSI) using the SYSTEM account, as is done by SCCM, uninstalling fails to clean up the registry so Python is still showing up as installed in the control panel (and still detected by SCCM).

SCCM runs the following command line to install Python: msiexec /i "python-2.7.14.amd64.msi" ADDLOCAL=ALL /qn

For uninstallation I use the following command line: msiexec /x {0398A685-FD8D-46B3-9816-C47319B0CF5F}

Both are run as the SYSTEM account.

zware commented 4 years ago

Hi Sven,

I'm sorry this issue never got attention before the end of 2.7, but as we have now reached that point I'm going to go ahead and close this issue. I hope it didn't cause you too much trouble! If you can also reproduce this with a current version of Python 3, please either reopen this issue or open a new one.