Post by Terry ReedyTo clarify, the pydev/python.org installer does not use msi. I don't
know that anyone else does. And if someone did, why do you think it
would also uninstall the current installation?
Because, if you did find an MSI installer, and installed the same
version /over/ the existing install (same directory), then the MSI uninstall
would be removing contents from that directory.
Other than that, you could check if the "common" installers uninstall
files are in the directory... Depends upon what the installer used...
unwise.exe
unins000.exe
uninstall.exe
... are a few of the files I've found just perusing directories under
c:\program files (x86)\
... Or search the registry for a suitable "UninstallString" key (or
"UninstallPath", etd.). After all, if the control panel (or 3rd party -- AVG PC
Tuneup) can produce a list of applications to uninstall then there
must be a table /somewhere/ in the system listing the application and the
command needed to do the uninstall (Though I'll admit I'm having trouble
finding it for one of my test cases -- not Python...)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5CA49A
DF-9C1A-4332-B5AD-F512BE633C1D}]
...
"InstallLocation"="C:\\Python35\\"
"InstallSource"="C:\\Users\\Wulfraed\\AppData\\Roaming\\ActiveState
Software Inc\\ActivePython 3.5.4 Build 3504 (64-bit)
3.5.3504\\install\\E633C1D\\"
...
"UninstallString"=hex(2):4d,00,73,00,69,00,45,00,78,00,65,00,63,00,2e,00,65,00,
\
78,00,65,00,20,00,2f,00,49,00,7b,00,35,00,43,00,41,00,34,00,39,00,41,00,44,\
00,46,00,2d,00,39,00,43,00,31,00,41,00,2d,00,34,00,33,00,33,00,32,00,2d,00,\
42,00,35,00,41,00,44,00,2d,00,46,00,35,00,31,00,32,00,42,00,45,00,36,00,33,\
00,33,00,43,00,31,00,44,00,7d,00,00,00
...
(Apparently some are stored in a 16-bit encoding...)
Post by Terry Reedybs = """4d,00,73,00,69,00,45,00,78,00,65,00,63,00,2e,00,65,00,
...
78,00,65,00,20,00,2f,00,49,00,7b,00,35,00,43,00,41,00,34,00,39,00,41,00,44,
...
00,46,00,2d,00,39,00,43,00,31,00,41,00,2d,00,34,00,33,00,33,00,32,00,2d,00,
...
42,00,35,00,41,00,44,00,2d,00,46,00,35,00,31,00,32,00,42,00,45,00,36,00,33,
... 00,33,00,43,00,31,00,44,00,7d,00,00,00"""
Post by Terry Reedybl = [int(b, 16) for b in bs.split(",")]
c = "".join([chr(b) for b in bl if b > 0])
c
'MsiExec.exe /I{5CA49ADF-9C1A-4332-B5AD-F512BE633C1D}'
... compared to ...
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\1760-01
18-5542-0450]
"DisplayName"="SimSmith 16.3"
"DisplayIcon"="C:\\Program Files\\SimSmith\\.install4j\\installer.ico"
"UninstallString"="\"C:\\Program Files\\SimSmith\\uninstall.exe\""
"Publisher"="ae6ty"
--
Wulfraed Dennis Lee Bieber AF6VN
***@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/