42
43
44
45
46
47
48
49
50
51
52
53
54
55
56 | 41
42
43
44
45
46
47
48
49
50
51
52
53
54
55 |
-
+
| echo.
echo.
setlocal enableextensions
cd /d "%~dp0"
if NOT "%cd%" == "%TEMP%" (
copy "%UsrFolder%\share\streamtuner2\dev\uninstall.cmd" "%temp%\STuninst.cmd"
copy "%installFolder%\usr\share\streamtuner2\dev\uninstall.cmd" "%temp%\STuninst.cmd"
"%temp%\STuninst.cmd"
)
tasklist /fi "Imagename eq python.exe" /fi "Windowtitle eq %ST2%*" /v | find "%ST2%" >nul
if %errorlevel% EQU 0 goto ST2isRunning
tasklist /fi "Imagename eq pythonw.exe" /fi "Windowtitle eq %ST2%*" /v | find "%ST2%" >nul
if %errorlevel% EQU 0 goto ST2isRunning |
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141 | 105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146 |
-
+
+
+
+
+
-
+
-
+
-
+
+
+
| set INPUT=
:uninstallPython
if '%Pythonrun%' EQU 'Y' (
echo Skipping uninstall of Python
goto uninstallST2
)
echo | set /p=Do you want to keep your Python 2.7.12 installation? [Y/n]
echo | set /p=Do you want to keep your Python 2.7.13 installation? [Y/n]
set /P INPUT=%=%
If /I '%INPUT%' == 'N' (
echo Uninstalling Python...
echo Removing PIL 1.1.7
"%Python%\RemovePIL.exe" -u "%Python%\PIL-wininst.log"
if exist "%Python%\Lib\site-packages\mutagen-1*py2.7.egg-info" (
echo Removing Mutagen
"%Python%\scripts\pip.exe" uninstall mutagen -y -q
)
echo Removing pyquery 1.2.17
"%Python%\scripts\pip.exe" uninstall pyquery -y -q
echo Removing LXML 2.3
"%Python%\scripts\pip.exe" uninstall lxml -y -q
echo Removing requests
"%Python%\scripts\pip.exe" uninstall requests -y -q
echo Removing cssselect
"%Python%\scripts\pip.exe" uninstall cssselect -y -q
echo Removing PyGtk 2.24.2
MsiExec.exe /x{09F82967-D26B-48AC-830E-33191EC177C8} /qb-!
echo Removing Python 2.7.12
reg delete %RegUninstallBase%\{09F82967-D26B-48AC-830E-33191EC177C8} /f 1>nul 2>&1
echo Removing Python 2.7.13
MsiExec.exe /x{9DA28CE5-0AA5-429E-86D8-686ED898C665} /qb-!
MsiExec.exe /x{4A656C6C-D24A-473F-9747-3A8D00907A03} /qb-!
reg delete HKCU\SOFTWARE\Python\PythonCore\2.7 /f 1>nul 2>&1
reg delete %RegUninstallBase%\{9DA28CE5-0AA5-429E-86D8-686ED898C665} /f 1>nul 2>&1
reg delete %RegUninstallBase%\{4A656C6C-D24A-473F-9747-3A8D00907A03} /f 1>nul 2>&1
rd "%Python%" /S /Q
echo Removing installed Gtk2-Themes
rd "%APPDATA%\streamtuner2\themes" /S /Q
)
:uninstallST2
echo Removing %ST2%...
rd "%installFolder%" /S /Q
echo Removing shortcuts... |