How to Uninstall Sql Server using MSIEXEC.exe

Hi,

Is it possible to uninstall an SqlServer Instance (not Msde) using msiexec.exe.

For uninstall using msiexec.exe we need product code. But in the registry i could not find any product code for an installed sql server instance

[252 byte] By [VasanthsR] at [2007-12-25]
# 1
Is this a SQL 2005 uninstall? And is there a reason you don't want to use setup.exe with the uninstall parameters?

Thanks,
Sam Lester (MSFT)

SamuelLester-MSFT at 2007-9-3 > top of Msdn Tech,SQL Server,SQL Server Setup & Upgrade...
# 2

Hi,

It is Sql 2000. but anyhow, i can use the Registry entry key 'UninstallString' to uninstall it (IsUninst.exe).

But i want to know how to find whether the Installed version is Sql Server or MSDE. (Not from the Query). I want to know by registry key.

VasanthsR at 2007-9-3 > top of Msdn Tech,SQL Server,SQL Server Setup & Upgrade...
# 3

Msiexec.exe can only be used for products installed with Widows Installer technology. SQL Server 2000 (not MSDE) uses InstallShield so you cannot use msiexec to uninstall SQL Server 2000. You can use it for MSDE 2000 because that one is Windows Installed based.

MilosCimfl-MSFT at 2007-9-3 > top of Msdn Tech,SQL Server,SQL Server Setup & Upgrade...

SQL Server

Site Classified