Start11 彻底卸载 删除残留

Start11 原版会有残留的服务项删不了,删除的话得用特殊方法。

新建文本,输入下面的代码然后保存,把后缀txt改成bat,运行即可。

然后把

C:\Program Files (x86)\Stardock

这个文件夹全删除。就可以安装新版本覆盖上去

@echo off

:: BatchGotAdmin credit: https://sites.google.com/site/eneerge/scripts/batchgotadmin

:-------------------------------------

REM --> Check for permissions

>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

REM --> If error flag set, we do not have admin.

if '%errorlevel%' NEQ '0' (

echo Requesting administrative privileges...

goto UACPrompt

) else ( goto gotAdmin )

:UACPrompt

echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"

echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"

"%temp%\getadmin.vbs"

exit /B

:gotAdmin

if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )

pushd "%CD%"

CD /D "%~dp0"

:--------------------------------------

::Get Install path

FOR /F "usebackq tokens=2,* skip=2" %%L IN (

`reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Stardock\Misc\Start11" /V Path`

) DO SET S11installpath64=%%M

)

FOR /F "usebackq tokens=2,* skip=2" %%L IN (

`reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Stardock\Misc\Start11" /V Path`

) DO SET S11installpath32=%%M

)

FOR /F "usebackq tokens=2,* skip=2" %%L IN (

`reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Stardock\Misc\Start10" /V Path`

) DO SET S10installpath64=%%M

)

FOR /F "usebackq tokens=2,* skip=2" %%L IN (

`reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Stardock\Misc\Start10" /V Path`

) DO SET S10installpath32=%%M

)

FOR /F "usebackq tokens=2,* skip=2" %%L IN (

`reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Stardock\Misc\Start8" /V Path`

) DO SET S8installpath64=%%M

)

FOR /F "usebackq tokens=2,* skip=2" %%L IN (

`reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Stardock\Misc\Start8" /V Path`

) DO SET S8installpath32=%%M

)

Set S11DefaultPath64=C:\Program Files (x86)\Stardock\Start11

Set S11DefaultPath32=C:\Program Files\Stardock\Start11

Set S10DefaultPath64=C:\Program Files (x86)\Stardock\Start10

Set S10DefaultPath32=C:\Program Files\Stardock\Start10

Set S8DefaultPath64=C:\Program Files (x86)\Stardock\Start8

Set S8DefaultPath32=C:\Program Files\Stardock\Start8

::Kill explorer, services, and tasks

taskkill /f /im explorer.exe

::Start11

net stop "Stardock start11"

sc delete start11

taskkill /f /im start11.exe 2> nul

taskkill /f /im start11Srv.exe 2> nul

taskkill /f /im Start11_64.exe 2> nul

::Start10

net stop "Stardock start10"

sc delete start10

taskkill /f /im start10.exe 2> nul

taskkill /f /im start10Srv.exe 2> nul

taskkill /f /im Start10_64.exe 2> nul

::Start8

net stop "Stardock Start8"

sc delete Start8

taskkill /f /im start8.exe 2> nul

taskkill /f /im start8Srv.exe 2> nul

taskkill /f /im Start8_64.exe 2> nul

::Wipe the registry

::Start11

reg query HKEY_CURRENT_USER\Software\Stardock\start11\

if not ErrorLevel 1 (

reg delete HKEY_CURRENT_USER\Software\Stardock\start11\ /f

) else (

echo.

)

reg query HKEY_LOCAL_MACHINE\Software\Stardock\Misc\start11\

if not ErrorLevel 1 (

reg delete HKEY_LOCAL_MACHINE\Software\Stardock\Misc\start11\ /f

) else (

echo.

)

reg query HKEY_LOCAL_MACHINE\Software\Wow6432Node\Stardock\Misc\start11\

if not ErrorLevel 1 (

reg delete HKEY_LOCAL_MACHINE\Software\Wow6432Node\Stardock\Misc\start11\ /f

) else (

echo.

)

reg query HKEY_LOCAL_MACHINE\Software\Stardock\Misc\start11\

if not ErrorLevel 1 (

reg delete HKEY_LOCAL_MACHINE\Software\Stardock\Misc\start11\ /f

) else (

echo.

)

::Start10

reg query HKEY_CURRENT_USER\Software\Stardock\start10\

if not ErrorLevel 1 (

reg delete HKEY_CURRENT_USER\Software\Stardock\start10\ /f

) else (

echo.

)

reg query HKEY_LOCAL_MACHINE\Software\Stardock\Misc\start10\

if not ErrorLevel 1 (

reg delete HKEY_LOCAL_MACHINE\Software\Stardock\Misc\start10\ /f

) else (

echo.

)

reg query HKEY_LOCAL_MACHINE\Software\Wow6432Node\Stardock\Misc\start10\

if not ErrorLevel 1 (

reg delete HKEY_LOCAL_MACHINE\Software\Wow6432Node\Stardock\Misc\start10\ /f

) else (

echo.

)

reg query HKEY_LOCAL_MACHINE\Software\Stardock\Misc\start10\

if not ErrorLevel 1 (

reg delete HKEY_LOCAL_MACHINE\Software\Stardock\Misc\start10\ /f

) else (

echo.

)

::Start8

reg query HKEY_CURRENT_USER\Software\Stardock\Start8\

if not ErrorLevel 1 (

reg delete HKEY_CURRENT_USER\Software\Stardock\Start8\ /f

) else (

echo.

)

reg query HKEY_LOCAL_MACHINE\Software\Stardock\Misc\Start8\

if not ErrorLevel 1 (

reg delete HKEY_LOCAL_MACHINE\Software\Stardock\Misc\Start8\ /f

) else (

echo.

)

reg query HKEY_LOCAL_MACHINE\Software\Stardock\Start8\

if not ErrorLevel 1 (

reg delete HKEY_LOCAL_MACHINE\Software\Stardock\Start8\ /f

) else (

echo.

)

reg query HKEY_LOCAL_MACHINE\Software\Wow6432Node\Stardock\Misc\Start8\

if not ErrorLevel 1 (

reg delete HKEY_LOCAL_MACHINE\Software\Wow6432Node\Stardock\Misc\Start8\ /f

) else (

echo.

)

reg query HKEY_LOCAL_MACHINE\Software\Stardock\Misc\Start8\

if not ErrorLevel 1 (

reg delete HKEY_LOCAL_MACHINE\Software\Stardock\Misc\Start8\ /f

) else (

echo.

)

::Unregister DLLs

::Start11

IF EXIST "%S11installpath64%\Start11_32.dll" regsvr32 /s /u "%S11installpath64%\Start11_32.dll"

IF EXIST "%S11installpath32%\Start11_32.dll" regsvr32 /s /u "%S11installpath32%\Start11_32.dll"

IF EXIST "%S11installpath64%\start11_64.dll" regsvr32 /s /u "%S11installpath64%\start11_64.dll"

IF EXIST "%S11installpath32%\start11_64.dll" regsvr32 /s /u "%S11installpath32%\start11_64.dll"

IF EXIST "%S11installpath64%\Start11Shell32.dll" regsvr32 /s /u "%S11installpath64%\Start11Shell32.dll"

IF EXIST "%S11installpath32%\Start11Shell32.dll" regsvr32 /s /u "%S11installpath32%\Start11Shell32.dll"

IF EXIST "%S11installpath64%\Start11Shell64.dll" regsvr32 /s /u "%S11installpath64%\Start11Shell64.dll"

IF EXIST "%S11installpath32%\Start11Shell64.dll" regsvr32 /s /u "%S11installpath32%\Start11Shell64.dll"

::Start10

IF EXIST "%S10installpath64%\Start10_32.dll" regsvr32 /s /u "%S10installpath64%\Start10_32.dll"

IF EXIST "%S10installpath32%\Start10_32.dll" regsvr32 /s /u "%S10installpath32%\Start10_32.dll"

IF EXIST "%S10installpath64%\start10_64.dll" regsvr32 /s /u "%S10installpath64%\start10_64.dll"

IF EXIST "%S10installpath32%\start10_64.dll" regsvr32 /s /u "%S10installpath32%\start10_64.dll"

IF EXIST "%S10installpath64%\Start10Shell32.dll" regsvr32 /s /u "%S10installpath64%\Start10Shell32.dll"

IF EXIST "%S10installpath32%\Start10Shell32.dll" regsvr32 /s /u "%S10installpath32%\Start10Shell32.dll"

IF EXIST "%S10installpath64%\Start10Shell64.dll" regsvr32 /s /u "%S10installpath64%\Start10Shell64.dll"

IF EXIST "%S10installpath32%\Start10Shell64.dll" regsvr32 /s /u "%S10installpath32%\Start10Shell64.dll"

::Start8

IF EXIST "%S8installpath64%\Start8_32.dll" regsvr32 /s /u "%S8installpath64%\Start8_32.dll"

IF EXIST "%S8installpath32%\Start8_32.dll" regsvr32 /s /u "%S8installpath32%\Start8_32.dll"

IF EXIST "%S8installpath64%\start8_64.dll" regsvr32 /s /u "%S8installpath64%\start8_64.dll"

IF EXIST "%S8installpath32%\start8_64.dll" regsvr32 /s /u "%S8installpath32%\start8_64.dll"

IF EXIST "%S8installpath64%\Start8Shell32.dll" regsvr32 /s /u "%S8installpath64%\Start8Shell32.dll"

IF EXIST "%S8installpath32%\Start8Shell32.dll" regsvr32 /s /u "%S8installpath32%\Start8Shell32.dll"

IF EXIST "%S8installpath64%\Start8Shell64.dll" regsvr32 /s /u "%S8installpath64%\Start8Shell64.dll"

IF EXIST "%S8installpath32%\Start8Shell64.dll" regsvr32 /s /u "%S8installpath32%\Start8Shell64.dll"

::Clean license data

::Start11

IF EXIST "%S11installpath64%" "%S11installpath64%\SdDisplay.exe" -deactivate -prodID=2663 -prodName="Start11" -company="Stardock" -prodVer="1"

IF EXIST "%S11installpath32%" "%S11installpath32%\SdDisplay.exe" -deactivate -prodID=2663 -prodName="Start11" -company="Stardock" -prodVer="1"

IF EXIST "%ProgramData%\Stardock\start11\*.*" del "%ProgramData%\Stardock\start11\*.*"/s /q

IF EXIST "%ProgramData%\Stardock\start11\" RMDIR "%ProgramData%\Stardock\start11\" /s /q

::Start10

IF EXIST "%S10installpath64%" "%S10installpath64%\SdDisplay.exe" -deactivate -prodID=2623 -prodName="Start10" -company="Stardock" -prodVer="1.54"

IF EXIST "%S10installpath32%" "%S10installpath32%\SdDisplay.exe" -deactivate -prodID=2623 -prodName="Start10" -company="Stardock" -prodVer="1.54"

IF EXIST "%ProgramData%\Stardock\start10\*.*" del "%ProgramData%\Stardock\start10\*.*"/s /q

IF EXIST "%ProgramData%\Stardock\start10\" RMDIR "%ProgramData%\Stardock\start10\" /s /q

IF EXIST "%ProgramData%\Stardock\S102\" RMDIR "%ProgramData%\Stardock\S102\" /s /q

IF EXIST "%ProgramData%\Stardock\Registrations\start10*.bin" del "C:\ProgramData\Stardock\Registrations\start10*.bin" /s /q

IF EXIST "%ProgramData%\Stardock\Registrations\start10*.*" del "%ProgramData%\Stardock\Registrations\start10*.*" /s /q

::Start8

IF EXIST "%S8installpath64%" "%S8installpath64%\SdDisplay.exe" -deactivate -prodID=2267 -prodName="Start8" -company="Stardock" -prodVer="1.56"

IF EXIST "%S8installpath32%" "%S8installpath32%\SdDisplay.exe" -deactivate -prodID=2267 -prodName="Start8" -company="Stardock" -prodVer="1.56"

IF EXIST "%ProgramData%\Stardock\start8\*.*" del "%ProgramData%\Stardock\start8\*.*"/s /q

IF EXIST "%ProgramData%\Stardock\start8\" RMDIR "%ProgramData%\Stardock\start8\" /s /q

IF EXIST "%ProgramData%\Stardock\S8\" RMDIR "%ProgramData%\Stardock\S8\" /s /q

IF EXIST "%ProgramData%\Stardock\Registrations\start8*.bin" del "C:\ProgramData\Stardock\Registrations\start10*.8" /s /q

IF EXIST "%ProgramData%\Stardock\Registrations\start8*.*" del "%ProgramData%\Stardock\Registrations\start8*.*" /s /q

::Call uninstaller

(

echo MSGBOX "Start 8/10 is about to uninstall. If asked to reboot, select 'No'. Select [OK] to continue." > %temp%\TEMPmessage.vbs

call %temp%\TEMPmessage.vbs

del %temp%\TEMPmessage.vbs /f /q

)

IF EXIST "%S11installpath64%" "%S11installpath64%\uninstall.exe" /u:"%S11installpath64%\uninstall\uninstall.xml"

IF EXIST "%S11installpath32%" "%S11installpath32%\uninstall.exe" /u:"%S11installpath32%\uninstall\uninstall.xml"

IF EXIST "%S10installpath64%" "%S10installpath64%\uninstall.exe" /u:"%S10installpath64%\uninstall\uninstall.xml"

IF EXIST "%S10installpath32%" "%S10installpath32%\uninstall.exe" /u:"%S10installpath32%\uninstall\uninstall.xml"

IF EXIST "%S8installpath64%" "%S8installpath64%\uninstall.exe" /u:"%S8installpath64%\uninstall\uninstall.xml"

IF EXIST "%S8installpath32%" "%S8installpath32%\uninstall.exe" /u:"%S8installpath32%\uninstall\uninstall.xml"

::Remove program files

IF EXIST "%S11installpath64%\*.*" del "%S11installpath64%\*.*" /q

IF EXIST "%S11installpath64%" RMDIR "%S11installpath64%" /s /q

IF EXIST "%S11installpath32%\*.*" del "%S11installpath32%\*.*" /q

IF EXIST "%S11installpath32%" RMDIR "%S11installpath32%" /s /q

IF EXIST "%S10installpath64%\*.*" del "%S10installpath64%\*.*" /q

IF EXIST "%S10installpath64%" RMDIR "%S10installpath64%" /s /q

IF EXIST "%S10installpath32%\*.*" del "%S10installpath32%\*.*" /q

IF EXIST "%S10installpath32%" RMDIR "%S10installpath32%" /s /q

IF EXIST "%S8installpath64%\*.*" del "%S8installpath64%\*.*" /q

IF EXIST "%S8installpath64%" RMDIR "%S8installpath64%" /s /q

IF EXIST "%S8installpath32%\*.*" del "%S8installpath32%\*.*" /q

IF EXIST "%S8installpath32%" RMDIR "%S8installpath32%" /s /q

IF EXIST "%S10defultpath64%\*.*" del "%S10defultpath64%\*.*" /q

IF EXIST "%S10defultpath64%" RMDIR "%S10defultpath64%" /s /q

IF EXIST "%S10defultpath32%\*.*" del "%S10defultpath32%\*.*" /q

IF EXIST "%S10defultpath32%" RMDIR "%S10defultpath32%" /s /q

IF EXIST "%S8defultpath64%\*.*" del "%S8defultpath64%\*.*" /q

IF EXIST "%S8defultpath64%" RMDIR "%S8defultpath64%" /s /q

IF EXIST "%S8defultpath32%\*.*" del "%S8defultpath32%\*.*" /q

IF EXIST "%S8defultpath32%" RMDIR "%S8defultpath32%" /s /q

::CLean start menu

IF EXIST "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Stardock\Start11.lnk" del "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Stardock\Start11.lnk"

IF EXIST "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Stardock\Start10.lnk" del "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Stardock\Start10.lnk"

IF EXIST "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Stardock\Start8.lnk" del "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Stardock\Start8.lnk"

start explorer.exe

(

echo MSGBOX "Purge complete. Please restart your PC. Select [OK] to continue." > %temp%\TEMPmessage.vbs

call %temp%\TEMPmessage.vbs

del %temp%\TEMPmessage.vbs /f /q

)

你可能感兴趣的:(Start11 彻底卸载 删除残留)