Uninstalling a service

For all your non-technical questions.
Post Reply
GraemeAU
Posts: 8
Joined: Mon Nov 14, 2005 10:23 pm

Uninstalling a service

Post by GraemeAU »

Hi All, I'm having difficulty with services while trialling this product. Initially I needed to copy the service files across to the targetdir, then update an XML file, then start the service using the Run Program feature and call net.exe start servicename. I've now got that sorted :D thanks to another post however.....

I also require my application to cleanly uninstall and am unable to either call the control service feature to stop and uninstall the service on uninstallation or to do a run program and call installutil /u servicename after I do a net stop. :o
Can someone enlighten me as to what I may be doing wrong or provide a simple example.
Is there any way to debug what is going on in the Control Service?

Thanks
GraemeAU
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Call Control Service. But place it above Apply Install (not above Apply Uninstall). This way the uninstall action will be scheduled in time for Windows Installer to execute it. Its a bit counter intuitive but thats the way MSI works :)
GraemeAU
Posts: 8
Joined: Mon Nov 14, 2005 10:23 pm

Post by GraemeAU »

Hi Sinan, That sorted the problem out nicely. Thanks for the prompt reply.

Regards
GraemeAU
Post Reply