[Python-Dev] Windows new 3.5 installer: Command line uninstall

2015-06-01 Thread Paul Moore
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
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Windows new 3.5 installer: Command line uninstall

2015-06-01 Thread Paul Moore
On 1 June 2015 at 20:21, Steve Dower steve.do...@microsoft.com wrote:
 You need the original exe and can pass /uninstall to that.

OK, that's cool. Looks like I missed that in the docs. (Checks) Yes, I did :-(

Paul
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Windows new 3.5 installer: Command line uninstall

2015-06-01 Thread Steve Dower
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.

Cheers,
Steve

Top-posted from my Windows Phone

From: Paul Mooremailto:p.f.mo...@gmail.com
Sent: ‎6/‎1/‎2015 6:54
To: Python Devmailto:python-dev@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

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
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/steve.dower%40microsoft.com
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com