Check-in [41a5f3a096]
Overview
| Comment: | Better window presence check for taskkill |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
41a5f3a096becf1fcd09ec6b1924c264 |
| User & Date: | mario on 2016-12-10 12:22:13 |
| Other Links: | manifest | tags |
Context
|
2016-12-10
| ||
| 12:23 | New plugin: prefstore and updated .win.pack+resetprefs.cmd check-in: f117d88494 user: mario tags: trunk | |
| 12:22 | Better window presence check for taskkill check-in: 41a5f3a096 user: mario tags: trunk | |
| 12:21 | Remove $optionalInstall check (now in $task rule) check-in: 7ff513e315 user: mario tags: trunk | |
Changes
Modified dev/uninstall.cmd from [773744179d] to [67ad8c5176].
1 2 3 4 5 6 7 8 9 10 11 12 |
@set installFolder=Do_not_change
@set usrFolder=Do_not_change
@set Python=Do_not_change
@set StreamripperFolder=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
| > | 1 2 3 4 5 6 7 8 9 10 11 12 13 |
@set installFolder=Do_not_change
@set usrFolder=Do_not_change
@set Python=Do_not_change
@set StreamripperFolder=Do_not_change
@echo off
set ST2=Streamtuner2
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
goto goUAC
) else goto goADMIN
|
| ︙ | ︙ | |||
45 46 47 48 49 50 51 | cd /d "%~dp0" if NOT "%cd%" == "%TEMP%" ( copy "%UsrFolder%\share\streamtuner2\dev\uninstall.cmd" "%temp%\STuninst.cmd" "%temp%\STuninst.cmd" ) | | | > > > > > > > > | | | | | | > > > > > | | | | | | 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 99 100 101 102 103 104 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 |
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 %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
tasklist /fi "Imagename eq python.exe" | find "python.exe" >nul
if %errorlevel% EQU 1 goto NotRunning
echo.
echo There's a Python process running.
echo Please close all instances of Python before uninstalling!
set Pythonrun=Y
pause
goto NotRunning
:ST2isRunning
echo %ST2% is still running!
echo Please close all instances of %ST2% before uninstalling!
pause
exit
:NotRunning
echo | set /p=Do you want to uninstall %ST2% for Windows? [y/N]
set /P INPUT=%=%
If /I NOT '%INPUT%' == 'Y' exit
echo | set /p=Do you want to keep your %ST2% settings? [Y/n]
set /P INPUT=%=%
If /I '%INPUT%' == 'N' (
echo Deleting personal settings...
del "%APPDATA%\streamtuner2\*.*" /F /S /Q 1>nul
)
set INPUT=
if '"%StreamripperFolder%"' NEQ '' (
echo | set /p=Do you want to uninstall Streamripper? [y/N]
goto uninstallSR
)
% goto uninstallPython
:uninstallSR
set /P INPUT=%=%
If /I '%INPUT%' == 'Y' (
echo Uninstalling Streamripper...
"%StreamripperFolder%\Uninstall.exe" /S
reg delete HKCU\SOFTWARE\Streamripper /f 1>nul 2>&1
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Streamripper /f 1>nul 2>&1
reg delete HKLM\SOFTWARE\WoW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Streamripper /f 1>nul 2>&1
)
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]
set /P INPUT=%=%
If /I '%INPUT%' == 'N' (
echo Uninstalling Python...
echo Removing PIL 1.1.7
"%Python%\RemovePIL.exe" -u "%Python%\PIL-wininst.log"
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
MsiExec.exe /x{9DA28CE5-0AA5-429E-86D8-686ED898C665} /qb-!
reg delete HKCU\SOFTWARE\Python\PythonCore\2.7 /f 1>nul 2>&1
rd "%Python%" /S /Q
)
:uninstallST2 echo Removing %ST2%...
rd "%installFolder%" /S /Q
echo Removing shortcuts...
rd "%APPDATA%\Microsoft\Windows\Start Menu\Programs\%ST2%" /S /Q 1>nul
del "%USERPROFILE%\Desktop\Streamtuner2.lnk" 1>nul
reg delete HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%ST2% /f 1>nul 2>&1
echo Finished uninstalling %ST2%
pause
|