[Python-Dev] Windows new 3.5 installer: Command line uninstall
Paul Moore
p.f.moore at gmail.com
Mon Jun 1 15:52:39 CEST 2015
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
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).
Specifically
(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?
Paul
More information about the Python-Dev
mailing list