jezcooke
Posts: 29
Joined: Mon May 28, 2012 4:34 pm

IIS configuration deleted after modify

Hi,

Our installer optionally configures IIS during installation to set-up our application. It has been working fine, however recently if the user modifies the installation to add/remove features from our application during the process it completely removes the virtual/application directories set in IIS during original installation (the user didn't add or remove the feature that contains the IIS configuration).

It worked fine until AI 11.8 but since version 12.0 (i didn't try 11.9) this issue occurs 100% of the time.

I found the thread below which I wonder if may be related, did the mentioned "fix" actually break things?

http://www.advancedinstaller.com/forums ... IIS#p80755

Regards

Jez
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: IIS configuration deleted after modify

Hi Jez,

Can you please tell us if the behaviour persists when using the latest version of Advanced Installer?

Also, can you please tell us what is the condition for the website?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jezcooke
Posts: 29
Joined: Mon May 28, 2012 4:34 pm

Re: IIS configuration deleted after modify

Hi Dan,

Yes it still occurs with 12.3.

The "feature" to allow the user to choose whether to configure IIS is named "ConfigureIIS" (and is set to install by default).

We install a virtual directory with the following condition:

&ConfigureIIS=3

and an application directory using the following conditions for 32/64-bit cases:

&ConfigureIIS=3 AND VersionNT64
&ConfigureIIS=3 AND NOT VersionNT64

All disappear after modifying the install.

Thanks,

Jez
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: IIS configuration deleted after modify

Hi Jez,

Indeed, the website is removed because its condition is false when running in maintenance. You need to update the condition as follows:

Code: Select all

( ( !ConfigureIIS = 3 AND &ConfigureIIS <> 2 ) OR (&ConfigureIIS = 3) ) AND VersionNT64
Let us know if the behaviour still persists.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jezcooke
Posts: 29
Joined: Mon May 28, 2012 4:34 pm

Re: IIS configuration deleted after modify

Thanks Dan, that seems to have done the trick.

Do I take it that pre-12.0 it basically didn't touch the IIS settings in maintenance mode hence the condition didn't affect it before?

Thanks again,

Jez
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: IIS configuration deleted after modify

You're welcome Jez,

Precisely, starting with version 12.0 of Advanced Installer, IIS entities can be modified during maintenance, depending on their install conditions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”