rsiddhartht
Posts: 13
Joined: Fri Oct 08, 2010 7:37 am

Uninstalling a service

Hi,

I have a peculiar case where in I need to remove/uninstall a windows service through vbscript which needs to run as a custom action in the installer which i will be creating. In shot is there any other way i can uninstall a service without using the regular "Remove" option which we get after we run the installer again.


Best Regards
Siddharth
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstalling a service

Hi Siddharth,

I am not sure what you are trying to accomplish.

Do you need to perform a custom action that removes a service only on install?

If this is not the case, can you please exemplify the problem and give us more details about the intended behavior?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rsiddhartht
Posts: 13
Joined: Fri Oct 08, 2010 7:37 am

Re: Uninstalling a service

Yes Mihai.. That is what i want to do..
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstalling a service

Hi Siddharth,

Instead of using a custom action to accomplish this, you can try this from the Services page. By adding a control operation set with "Stop" and "Delete" on install the package will uninstall the existing service by its name:
http://www.advancedinstaller.com/user-g ... rties.html

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”