Page 1 of 1

Uninstall SQL Server 2012 during uninstall

Posted: Wed Jan 14, 2015 2:55 am
by ramu2020
I include SQL 2012 as runtime requirements, during installation it create the instance but I notice it did not uninstall the instance during uninstallation all. How can code it in MSICode to uninstall SQL 2012 instance?

Re: Uninstall SQL Server 2012 during uninstall

Posted: Wed Jan 14, 2015 11:59 am
by FrancescoT
Dear Ramu2020,

you should refer to the MS SQL documentation for that.

I am not quite sure, but maybe you have to run the MS SQL installer with the proper command line parameter ... in this case you can use the "Run Program" command.

Regards

Re: Uninstall SQL Server 2012 during uninstall

Posted: Wed Jan 14, 2015 9:58 pm
by ramu2020
Hi,
Yes I know about to run the mssql setup exe again but since during installation it already downloaded it into user pc, how can I retrieve back that particular mssql setup exe again to uninstall?

Re: Uninstall SQL Server 2012 during uninstall

Posted: Thu Jan 15, 2015 1:03 pm
by FrancescoT
Dear Ramu2020,

this value should be stored under; "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall".
Please refer to the following discussion for more details.
viewtopic.php?f=2&t=5959

Anyway, you should consult the MS SQL documentation for more details.

Last but not least, I really don't understand why you want to remove SQL Server from the target machine. Even if the product has been installed by your application, it should be not removed when your application is un-installed. Other installed application may use it and this is the reason why, this is not a recommended operation.

Regards