[Python-Dev] Windows new 3.5 installer: Command line uninstall
Steve.Dower at microsoft.com
Mon Jun 1 21:21:32 CEST 2015
You need the original exe and can pass /uninstall to that.
There is an uninstall entry in the registry that uses the cached version of the exe (via Programs and Features), but I don't know why WMI doesn't see it. I'll check that out a bit later.
You can uninstall with the web installer exe, and it won't download anything, but the version does have to match exactly.
Top-posted from my Windows Phone
From: Paul Moore<mailto:p.f.moore at gmail.com>
Sent: 6/1/2015 6:54
To: Python Dev<mailto:python-dev at python.org>
Subject: [Python-Dev] Windows new 3.5 installer: Command line uninstall
I'm trying to script a command line uninstall of Python 3.5. The new
installer has a nice well-documented command line interface, but
there's nothing much about how to uninstall.
Looking at the installed products, I see
>get-wmiobject Win32_Product -filter 'name like "Python 3.5.0b2%"' | select Name
Python 3.5.0b2 pip Bootstrap (64-bit)
Python 3.5.0b2 Development Libraries (64-bit)
Python 3.5.0b2 C Runtime (64-bit)
Python 3.5.0b2 Tcl/Tk Support (64-bit)
Python 3.5.0b2 Standard Library (64-bit)
Python 3.5.0b2 Executables (64-bit)
Python 3.5.0b2 Core Interpreter (64-bit)
Python 3.5.0b2 Launcher (32-bit)
Python 3.5.0b2 Documentation (64-bit)
Python 3.5.0b2 Utility Scripts (64-bit)
Python 3.5.0b2 Test Suite (64-bit)
Normally I'd be able to call the Uninstall method on the installed
product, but here, I'm not sure which of the above I'd call
"Uninstall" on (there's only one "Programs and Features" entry for
3.5, and I can't tell which of these is equivalent to it - or if I
need to uninstall each in turn, I don't know what order they need to
be done in).
(get-wmiobject -query 'select * from Win32_Product where name =
"Python 2.7.8 (64-bit)"').Uninstall()
is an automated, command line silent uninstall of Python 2.7.8. What
(if anything) would be the equivalent for 3.5.0b2?
Python-Dev mailing list
Python-Dev at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev