How can i uninstall a service in IIS ? - Advanced Installer Community
Mel
Posts: 53
Joined: Fri Jul 10, 2020 10:59 am

How can i uninstall a service in IIS ?

I have a Rest service installed in IIS . When i uninstall my app , how can i get Advanced Installer to uninstall the Rest Service in IIS ?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: How can i uninstall a service in IIS ?

Hello,

That should be the default behavior - i.e. your IIS website/service should be uninstalled when the main setup is uninstalled.

If possible, could you please create a sample project that reproduces this and forward it to me (either here or by email at support at advancedinstaller dot com)?

If you can not do that, please forward me the following resources:

- a copy of your .AIP file

- a download link for the setup built with the said AIP file

- some details about the scenario that could be useful

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mel
Posts: 53
Joined: Fri Jul 10, 2020 10:59 am

Re: How can i uninstall a service in IIS ?

My scenario is as follows , so could you please explain how the service in iis will be uninstalled?

I use Advanced Installer to create my .exe. The application allows a user to define via winforms a name for a service by entering a value in a text box. They then click on a button to install. It goes ahead and creates the service in IIS and the same name for the Application Pool.

So if I go ahead and uninstall my app by clicking on Remove in the Maintenance screen, how will it know to remove the service in IIS ?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: How can i uninstall a service in IIS ?

Hello,

So the service is created by your application.

I thought it was created using our support for IIS.

In that case, you should generate a custom behavior for your EXE to remove the service when it is removed.

If that is not possible, then you can create your own custom action (e.g. a script) that will remove the service and schedule it to only execute on uninstall.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”