mercredi 28 novembre 2018

How to manually uninstall SQL Server (2017) or any other application

1- Download the following executable file, msiinv.zip from :

https://onedrive.live.com/?authkey=%21ANs8Pr0aVhaT_qQ&cid=27E6A35D1A492AF7&id=27E6A35D1A492AF7%21910&parId=27E6A35D1A492AF7%21376&action=locate

Alternative download link :
https://ufile.io/wv3c3


2- Unpack this file in a temp folder (such as C:\tmp\)


3- In command line, launch powershell


4- In powershell enter :
c:\tmp\msiinv.exe -s | Select-String "SQL Server" -Context 0,1


5- Then you have a list of SQL Server related applications


6- Take each product code and for each one launch msiexe /x such as :
msiexec /x {327B1B40-2434-4DC5-9D4D-B9B24D4B2EDE}


7- Follow steps on screen each time you launch msiexec


8- Launch Regedt32 and delete SQL services in the following key : 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services