IIS - only stop websites that were updated - Advanced Installer Community
IanKemp
Posts: 4
Joined: Fri Jul 25, 2014 10:46 am

IIS - only stop websites that were updated

Our Advanced Installer project installs seven different IIS websites. Depending on what work has been done to the websites, not all of them will necessarily have been changed from the previously run install. However, regardless of whether a change is made to a website or not, all seven are always stopped and have to be started manually.

Is there a way to get Advanced Installer to only stop the sites that were upgraded by the current install, and leave the unmodified ones running?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: IIS - only stop websites that were updated

Hello,

Have you tried to enable the Start website immediately option from the Web Site Settings and see if the behavior still persist?
If this option is checked, the Advanced Installer IIS configuration tool will attempt to start the associated service instance for the newly created Web Site.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
IanKemp
Posts: 4
Joined: Fri Jul 25, 2014 10:46 am

Re: IIS - only stop websites that were updated

What we require is that all sites that have been updated remain stopped, so that other necessary actions (like running SQL scripts) can be performed before we bring them online. However, the sites that weren't modified should not have their status changed at all (i.e. if they were stopped before the install they should remain stopped, if running before install they should continue running, etc.).
IanKemp
Posts: 4
Joined: Fri Jul 25, 2014 10:46 am

Re: IIS - only stop websites that were updated

Any update?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: IIS - only stop websites that were updated

Hello,

I'm not sure I fully understand your scenario.
Is there a way to get Advanced Installer to only stop the sites that were upgraded by the current install, and leave the unmodified ones running?
Please note that during an upgrade, all sites are removed on the uninstall previos version and are installed again when the installation of the new installation package starts.
So, not only the sites that are modified in the upgraded installation package are removed, all the sites are removed and then reinstalled.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
IanKemp
Posts: 4
Joined: Fri Jul 25, 2014 10:46 am

Re: IIS - only stop websites that were updated

Dan wrote:... all the sites are removed and then reinstalled.
This is the issue. This behavior has changed from the previous version of Advanced Installer (v8) that we were using before we upgraded to v11. v8 only removed and reinstalled sites that had changed, whereas v11 removes and reinstalls all sites, as you mentioned. Is there a way to get v11 to work the same way as v8 in this regard?

Return to “Common Problems”