"I tried to uninstall the same using below code, but its not working."
Process p = new Process();
p.StartInfo.FileName = "msiexec.exe";
p.StartInfo.Arguments = "/x \"C:\\Projects\\Debug\\ELSWinServInstaller.msi\"/qn";
Unistallation code is not working. It didn't throw any exception. it executed each line. but uninstallation didn't happen.