Uninstalling a service

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

Uninstalling a service

Postby GraemeAU » Wed Nov 30, 2005 10:05 pm

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: 1020
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Wed Nov 30, 2005 10:50 pm

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

Postby GraemeAU » Thu Dec 01, 2005 1:40 am

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

Regards
GraemeAU


Return to “Non-Technical”

Who is online

Users browsing this forum: No registered users and 26 guests