IIS configuration and minor upgrades - Advanced Installer Community
tgillitzer
Posts: 36
Joined: Tue Dec 13, 2011 12:12 am

IIS configuration and minor upgrades

It appears IIS configuration isn't performed on a minor upgrade (minor upgrade being defined as changing version number but not changing the product code).

Can anyone give me some insight on this?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: IIS configuration and minor upgrades

Hi,

The IIS configuration might not be performed if you use the "Uninstall old version first and then install new version" option in the Upgrades page. Otherwise, can you please give us more details about your scenario (maybe exemplify).

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tgillitzer
Posts: 36
Joined: Tue Dec 13, 2011 12:12 am

Re: IIS configuration and minor upgrades

I have an installer that installs a web site.

I make version 1.0.0. Run it, website gets installed fine.
I make version 1.1.0, select "major upgrade". This version contains a change to the web site configuration, such as a application pool recycling setting. Run it. Old version uninstalls, new version installs. Change to website is in place successfully.
I make version 1.1.1, select "patch" (also known as minor upgrade). This version contains a different change to the website configuration. Run it. Windows Installer detects it as a minor upgrade, does its thing, but the IIS change never gets put in place.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: IIS configuration and minor upgrades

Hi,
The IIS configuration might not be performed if you use the "Uninstall old version first and then install new version" option in the Upgrades page.
Sorry for my previous post, but I wanted to say that the "Install new version first and then uninstall old version" option should not be chosen in the Upgrades page, although, I see that you didn't use that option.

As for the patch, the IIS configurations are not modified because the condition in the Table Editor page is set only on install, not patch.

So, in order to achieve what you want you can go in the Table Editor page of your "1.1.1" version, "InstallExecuteSequence" table and use the following condition for the "AI_IIsInstall" row:

Code: Select all

((VersionNT >= 500) AND (NOT Installed)) OR ((VersionNT >= 500) AND PATCH)
In this case the IIS configurations will be installed on patch also, but you must go in the IIS page, select your website and choose the "Prompt user to overwrite item or rollback installation" option from the combo box in the "Error Policy" group at the bottom of the page. This must be done because your website is already installed when the patch tries to modify it.

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tgillitzer
Posts: 36
Joined: Tue Dec 13, 2011 12:12 am

Re: IIS configuration and minor upgrades

That general idea worked, but PATCH wasn't getting set. I ended up matching the SQL Install logic and used "(VersionNT >= 500) AND (REMOVE <> "ALL")"


However, I have a question. The Error policy setting has options to skip, rollback, prompt to skip or rollback, prompt to overwrite or rollback, but no option just to overwrite. Can this be added?

Thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: IIS configuration and minor upgrades

Hi,

I added this improvement on our TODO list and it will be available in a future version of Advanced Installer. Thank you for your suggestion.

If this is a high-priority option for you, we can give you the solution as soon as it will be available.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tgillitzer
Posts: 36
Joined: Tue Dec 13, 2011 12:12 am

Re: IIS configuration and minor upgrades

I'll wait for an official release. Thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: IIS configuration and minor upgrades

You're welcome. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: IIS configuration and minor upgrades

Hello,

This improvement was added in version 10.2 of Advanced Installer released on May 27, 2013.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”