Created
January 25, 2016 16:45
-
-
Save gioxx/30c54fa20601dba10881 to your computer and use it in GitHub Desktop.
Verifico la versione di Skype installato e lancio la disinstallazione in maniera silente. Cancello le cartelle del programma (tranne quelle del profilo utente). Testato su Dell Kace.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM @echo off | |
cls | |
REM Skype Removal Tool | |
REM GSolone - ult.mod. 25012016 | |
REM ------------------------------------------------------- | |
REM Verifica architettura sistema, fermo servizi Skype, imposto ricerca registro | |
if not defined ProgramFiles(x86) goto 32bit else goto 64bit | |
:32bit | |
"%PROGRAMFILES%\Skype\Phone\Skype.exe" /shutdown | |
SET PRODUCTKEY=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | |
goto KillProcess | |
:64bit | |
"%PROGRAMFILES(x86)%\Skype\Phone\Skype.exe" /shutdown | |
SET PRODUCTKEY=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | |
:KillProcess | |
taskkill /IM Skype.exe /F > NUL | |
REM Verifica della versione e disinstallazione | |
:Verify | |
REM Skype 4.2 | |
REG QUERY %PRODUCTKEY%\{5C474A83-A45F-470C-9AC8-2BD1C251BF9A} | |
IF %ERRORLEVEL% EQU 0 ( MsiExec.exe /X{5C474A83-A45F-470C-9AC8-2BD1C251BF9A} /qn /norestart ) | |
REM Skype 6.18 | |
REG QUERY %PRODUCTKEY%\{7A3C7E05-EE37-47D6-99E1-2EB05A3DA3F7} | |
IF %ERRORLEVEL% EQU 0 ( MsiExec.exe /X{7A3C7E05-EE37-47D6-99E1-2EB05A3DA3F7} /qn /norestart ) | |
REM Skype 6.21, 7.0, 7.5, 7.6, 7.7 | |
REG QUERY %PRODUCTKEY%\{24991BA0-F0EE-44AD-9CC8-5EC50AECF6B7} | |
IF %ERRORLEVEL% EQU 0 ( MsiExec.exe /X{24991BA0-F0EE-44AD-9CC8-5EC50AECF6B7} /qn /norestart ) | |
REM Skype 7.9, 7.10, 7.15 | |
REG QUERY %PRODUCTKEY%\{6A0549A9-1B96-498C-ACBC-3943001FEB19} | |
IF %ERRORLEVEL% EQU 0 ( MsiExec.exe /X{6A0549A9-1B96-498C-ACBC-3943001FEB19} /qn /norestart ) | |
REM Skype 7.16, 7.17, 7.18 | |
REG QUERY %PRODUCTKEY%\{FC965A47-4839-40CA-B618-18F486F042C6} | |
IF %ERRORLEVEL% EQU 0 ( MsiExec.exe /X{FC965A47-4839-40CA-B618-18F486F042C6} /qn /norestart ) | |
REM Rimozione dei file dell'applicazione | |
:RemoveFiles | |
if exist "%PROGRAMFILES%\Skype" rd /S /Q "%PROGRAMFILES%\Skype" | |
if exist "%PROGRAMFILES(x86)%\Skype" rd /S /Q "%PROGRAMFILES(x86)%\Skype" | |
if exist "%Programdata%\Skype" rd /S /Q "%Programdata%\Skype" | |
REM Esistono ma appartengono all'utente che lo ha usato fino a oggi: | |
REM - %appdata%\Skype | |
REM - %temp%\Skype | |
REM - %temp%\Skype*.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment