1
2
3
4
5
6
7
8
9
10
11
| @set installFolder=Do_Not_Change
@set usrFolder=Do_Not_Change
@set Python=Do_Not_Change
@echo off
cls
echo -----------------------------------------------------------------------------
echo ^| ^|
echo ^| _____/\\\\\\\\\\\____/\\\\\\\\\\\\\\\____/\\\\\\\\\_____ ^|
echo ^| ___/\\\/////////\\\_\///////\\\/////___/\\\///////\\\___ ^|
echo ^| __\//\\\______\///________\/\\\_______\///______\//\\\__ ^|
| |
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 | @set installFolder=Do_not_change
@set usrFolder=Do_not_change
@set Python=Do_not_change
@echo off
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
goto goUAC
) else goto goADMIN
:goUAC
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params = %*:"=""
echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B
:goADMIN
pushd "%CD%"
CD /D "%~dp0"
cls
echo -----------------------------------------------------------------------------
echo ^| ^|
echo ^| _____/\\\\\\\\\\\____/\\\\\\\\\\\\\\\____/\\\\\\\\\_____ ^|
echo ^| ___/\\\/////////\\\_\///////\\\/////___/\\\///////\\\___ ^|
echo ^| __\//\\\______\///________\/\\\_______\///______\//\\\__ ^| |
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88 | echo -----------------------------------------------------------------------------
echo.
echo.
setlocal enableextensions
cd /d "%~dp0"
echo Please wait, checking access permission...
echo.
netstat /b >nul
if errorlevel 1 (
color 0C
prompt $
echo You must run the uninstall with administrative privileges
pause
exit
)
:skipnetstat
if NOT "%cd%" == "%TEMP%" (
copy "%UsrFolder%\share\streamtuner2\dev\uninstall.cmd" "%temp%" 1>nul 2>&1
"%temp%\uninstall.cmd"
)
echo This will uninstall Streamtuner2
echo.
echo Do you want to keep your Streamtuner2 settings? (y/n)
set INPUT=
set /P INPUT= %=%
If /I %INPUT%==N (
echo Deleting personal settings...
del "%Userprofile%\AppData\Roaming\streamtuner2\*.*" /F /S /Q
)
echo Do you want to uninstall Python? (y/n)
set INPUT=
set /P INPUT= %=%
If /I %INPUT%==Y (
echo Removing LXML
"%Python%\Removelxml.exe" -u "C:\Python27\lxml-wininst.log"
echo Removing PIL
"%Python%\RemovePIL.exe" -u "C:\Python27\PIL-wininst.log"
echo Removing requests
"%Python%\scripts\pip.exe" uninstall requests -q <"%UsrFolder%\share\streamtuner2\dev\Y" 1>nul
echo Removing pyquery
"%Python%\scripts\pip.exe" uninstall pyquery -q <"%UsrFolder%\share\streamtuner2\dev\Y" 1>nul
echo Removing cssselect
"%Python%\scripts\pip.exe" uninstall cssselect -q <"%UsrFolder%\share\streamtuner2\dev\Y" 1>nul
echo Removing PyGtk
MsiExec.exe /x{09F82967-D26B-48AC-830E-33191EC177C8} /qb-!
echo Removing Python 27
MsiExec.exe /x{9DA28CE5-0AA5-429E-86D8-686ED898C665} /qb-!
rd %Python% /S /Q
)
echo Removing Streamtuner2
rd "%installFolder%" /S /Q
echo Removing shortcuts
rd "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Streamtuner2" /S /Q
del "%USERPROFILE%\Desktop\Streamtuner2.lnk" 1>nul
reg delete HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Streamtuner2 /f 1>nul
echo Finished uninstalling Streamtuner2
pause |
<
<
<
<
<
<
<
<
<
<
<
<
|
|
|
|
<
>
|
|
|
|
<
|
|
|
|
>
|
|
>
|
|
|
|
|
| 43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98 | echo -----------------------------------------------------------------------------
echo.
echo.
setlocal enableextensions
cd /d "%~dp0"
if NOT "%cd%" == "%TEMP%" (
copy "%UsrFolder%\share\streamtuner2\dev\uninstall.cmd" "%temp%\STuninst.cmd" 1>nul 2>&1
"%temp%\STuninst.cmd"
)
echo | set /p=Do you want to uninstall Streamtuner2 for Windows? (y/n)
set /P INPUT=%=%
If /I NOT %INPUT% == Y exit
echo | set /p=Do you want to keep your Streamtuner2 settings? (y/n)
set /P INPUT=%=%
If /I %INPUT% == N (
echo Deleting personal settings...
del "%Userprofile%\AppData\Roaming\streamtuner2\*.*" /F /S /Q
)
echo | set /p=Do you want to keep your Python 2.7.12 installation? (y/n)
set /P INPUT=%=%
If /I %INPUT% == N (
echo Removing LXML 2.3
"%Python%\Removelxml.exe" -u "%Python%\lxml-wininst.log"
REM reg delete HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\lxml-py2.7 /f 1>nul
echo Removing PIL 1.1.7
"%Python%\RemovePIL.exe" -u "%Python%\PIL-wininst.log"
REM reg delete HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PIL-py2.7 /f 1>nul
echo Removing requests
"%Python%\scripts\pip.exe" uninstall requests -q <"%UsrFolder%\share\streamtuner2\dev\Y" 1>nul
echo Removing pyquery 1.2.17
"%Python%\scripts\pip.exe" uninstall pyquery -q <"%UsrFolder%\share\streamtuner2\dev\Y" 1>nul
echo Removing cssselect
"%Python%\scripts\pip.exe" uninstall cssselect -q <"%UsrFolder%\share\streamtuner2\dev\Y" 1>nul
echo Removing PyGtk 2.24.2
MsiExec.exe /x{09F82967-D26B-48AC-830E-33191EC177C8} /qb-!
echo Removing Python 2.7.12
MsiExec.exe /x{9DA28CE5-0AA5-429E-86D8-686ED898C665} /qb-!
rd "%Python%" /S /Q
)
echo Removing Streamtuner2
rd "%installFolder%" /S /Q
echo Removing shortcuts
rd "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Streamtuner2" /S /Q
del "%USERPROFILE%\Desktop\Streamtuner2.lnk" 1>nul
reg delete HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Streamtuner2 /f 1>nul
echo Finished uninstalling Streamtuner2
pause |