45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67 | cd /d "%~dp0"
if NOT "%cd%" == "%TEMP%" (
copy "%UsrFolder%\share\streamtuner2\dev\uninstall.cmd" "%temp%\STuninst.cmd"
"%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
)
set INPUT=
if '"%StreamripperFolder%"' NEQ '' (
echo | set /p=Do you want to uninstall Streamripper? [y/N]
goto uninstallSR
) |
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
| 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 | cd /d "%~dp0"
if NOT "%cd%" == "%TEMP%" (
copy "%UsrFolder%\share\streamtuner2\dev\uninstall.cmd" "%temp%\STuninst.cmd"
"%temp%\STuninst.cmd"
)
tasklist /fi "Imagename eq python.exe" /fi "Windowtitle eq Streamtuner2*" /v | find "Streamtuner2" >nul
if %errorlevel% EQU 0 goto ST2isRunning
tasklist /fi "Imagename eq pythonw.exe" /fi "Windowtitle eq Streamtuner2*" /v | find "Streamtuner2" >nul
if %errorlevel% EQU 1 goto NotRunning
:ST2isRunning
echo Streamtuner2 is still running!
echo Please close all instances of Streamtuner2 before uninstalling!
pause
exit
:NotRunning
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 1>nul
)
set INPUT=
if '"%StreamripperFolder%"' NEQ '' (
echo | set /p=Do you want to uninstall Streamripper? [y/N]
goto uninstallSR
) |
100
101
102
103
104
105
106
107
108
109
110
111
112
113 | 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 2>&1
echo Finished uninstalling Streamtuner2
pause |
|
| 114
115
116
117
118
119
120
121
122
123
124
125
126
127 | 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 1>nul
del "%USERPROFILE%\Desktop\Streamtuner2.lnk" 1>nul
reg delete HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Streamtuner2 /f 1>nul 2>&1
echo Finished uninstalling Streamtuner2
pause |