Page 1 of 1

How to Uninstalled Window Service

Posted: Mon Dec 12, 2011 4:26 am
by sarooptrivedi
I build installer for my window service through the InstallAware. When i Install the Service through the setup it's work properly but not able to uninstalled the service when the setup run for un-installation. How to set that think in MSI Code.

How to put the Uninstalled Window service through the InstallAware Setup.

Please Guide me.. It's critical problem here...

Re: How to Uninstalled Window Service

Posted: Tue Dec 13, 2011 2:41 am
by giaviv
Hi,

Try manually calling sc.exe with the parameters "delete [servicename]" upon uninstallation.
Invoke sc.exe using the Run Program command right before the call to Apply Uninstall.