AndyL
Posts: 22
Joined: Tue Jan 26, 2021 12:58 pm

Error from AI_IIsConfig after upgrading to Advanced Installer 19

Thu Feb 03, 2022 4:48 pm

We have an installer that configures IIS, and creates an app pool and web app.
For versions 1, 2 and 3 of our product, we built the installer in AI 17.9. Each time, we just change the version numbers and product codes, and obviously the files that get installed. The installer itself has no other changes.
For version 4 of our product, we did the same except this time we used AI 19.0.
Now we seem to be getting an IIS configuration error when doing an upgrade installation, that we didn't get with the previous versions. (A clean install still works fine.)

Test scenario 1:
  1. Start with a clean, blank Windows 10 VM.
  2. Install product version 1.
  3. Browse to web app and check it's working.
  4. Run installer for product version 3 and do an upgrade of the previous install.
This works without any problems.

Test scenario 2:
  1. Start with a clean, blank Windows 10 VM.
  2. Install product version 1.
  3. Browse to web app and check it's working.
  4. Run installer for product version 4 and do an upgrade of the previous install.
This fails with an error message something like "There was an error during the IIS configuration process while trying to install application pool".

I've compared the logs from the successful version 3 upgrade and the failed version 4 upgrade, and this is an extract from the failed upgrade where they diverge:

Code: Select all

MSI (s) (DC:84) [14:11:25:337]: Executing op: ActionStart(Name=AI_IIsConfig,Description=Configuring Internet Information Services,Template=Installing "[1]")
MSI (s) (DC:84) [14:11:25:340]: Executing op: CustomActionSchedule(Action=AI_IIsConfig,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (DC:AC) [14:11:25:344]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI3ECA.tmp, Entrypoint: OnIIsConfig
[OPERATION]Application pool 'ProductX App Pool'
[INFO] Installing Application pool...
[INFO] Trying to retrieve 'ProductX App Pool' Application Pool...
[OK] Found AppPool.
[INFO] ApplicationPool 'ProductX App Pool' already exists !
[WARN] Skipping Application Pool Install...
[INFO] Updating common headers to 'MACHINE/WEBROOT/APPHOST'.
[INFO] Committing changes to path 'MACHINE/WEBROOT/APPHOST'...
 COM Error [0x80070020]: (The process cannot access the file because it is being used by another process.)[ERR] Cannot execute Commit operation.
 COM Error [0xffffffff]: (Unknown error 0xFFFFFFFF)[ERR] Cannot execute Commit operation.

MSI (s) (DC!80) [14:11:59:509]: Product: Acuity STREAM Web API -- Error 4034. There was an error during the IIS configuration process while trying to install Application pool 'ProductX App Pool'.

Your original IIS configuration will be restored.

CustomAction AI_IIsConfig returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 14:11:59: InstallFinalize. Return value 3.
Has there been any change to this custom action between 17.9 and 19.0 that might explain the different behaviour?

AndyL
Posts: 22
Joined: Tue Jan 26, 2021 12:58 pm

Re: Error from AI_IIsConfig after upgrading to Advanced Installer 19

Fri Feb 04, 2022 1:28 pm

Another test case which provided an interesting different result:
  1. Start with a clean, blank Windows 10 VM.
  2. Install product version 1.
  3. Browse to web app and check it's working.
  4. Run installer for product version 2 or 3 and do an upgrade of the previous install.
  5. Browse to web app and check it's working.
  6. Run installer for product version 4 and do an upgrade of the previous install.
This works with no error. I.e. if we've done an install and then an upgrade with the AI 17.9-built installers, then a subsequent upgrade with the 19.0-built installer works. If the upgrade using the 19.0-built installer is the first time an upgrade has been done, it fails.

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Error from AI_IIsConfig after upgrading to Advanced Installer 19

Tue Feb 08, 2022 5:54 pm

Hello Andy,

First of all, please accept my apologies for the delayed reply.

This is indeed quite a strange behavior.

Currently, I am not aware of any changes in that specific custom action. I will have to double check this with our dev team.

In the meantime, could you please forward me the resources to reproduce this by email at support at advancedinstaller dot com? I would like to have a look over them, if possible.

- a download link for version 1 (built with 17.9)

- a download link for version 2 (built with 17.9)

- a download link for version 4 (built with 19.0)

- the respective .AIP file for each setup

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

AndyL
Posts: 22
Joined: Tue Jan 26, 2021 12:58 pm

Re: Error from AI_IIsConfig after upgrading to Advanced Installer 19

Thu Feb 10, 2022 3:50 pm

Hi Catalin, I've just emailed you some sample installers to reproduce the issue.

AndyL
Posts: 22
Joined: Tue Jan 26, 2021 12:58 pm

Re: Error from AI_IIsConfig after upgrading to Advanced Installer 19

Thu Feb 10, 2022 4:07 pm

My emails with files to reproduce the issue keep getting bounced due to size limits exceeded. So it doesn't look like I can send you complete installers to reproduce the issue. I have now emailed some project files that should hopefully allow you to reproduce the issue, if you build them in AI 17.9 and AI 19.0.

AndyL
Posts: 22
Joined: Tue Jan 26, 2021 12:58 pm

Re: Error from AI_IIsConfig after upgrading to Advanced Installer 19

Thu Feb 10, 2022 4:10 pm

If there's an alternative way for me to get the installers to you without posting them somewhere publicly accessible, please let me know.

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Error from AI_IIsConfig after upgrading to Advanced Installer 19

Fri Feb 11, 2022 5:22 pm

Hello Andy,

Thank you very much for the provided resources.

Once I will have a conclusive answer, I will followup over the email.

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

nahmed
Posts: 4
Joined: Tue Feb 15, 2022 12:41 pm

Re: Error from AI_IIsConfig after upgrading to Advanced Installer 19

Thu Feb 17, 2022 12:07 pm

Hi Catalin,

I am encountering the same issue whenever I try to install on win2019 machine. Please see the log.

Code: Select all

AI_IIsConfig: Installing "xxxxxxxxx"
[OPERATION]Application pool 'xxxxxxxxx'
[INFO] Installing Application pool...
[INFO] Trying to retrieve 'xxxxxxxxx' Application Pool...
 COM Error [0x8007000d]: (The data is invalid.)[ERR] Could not get Admin Section 'system.applicationHost/applicationPools', with entry path 'MACHINE/WEBROOT/APPHOST'.
[ERR] [ERR] Could not get admin section.
[INFO] Trying to create AppPool..
[INFO] Changing commit path to 'MACHINE/WEBROOT/APPHOST'
[INFO] Committing changes to path 'MACHINE/WEBROOT/APPHOST'...
[OK] Commit done.
[OK] Commit path changed.
 COM Error [0x8007000d]: (The data is invalid.)[ERR] Could not get Admin Section 'system.applicationHost/applicationPools', with entry path 'MACHINE/WEBROOT/APPHOST'.
[ERR] [ERR] Could not get admin section.
 COM Error [0xffffffff]: (Unknown error 0xFFFFFFFF)[ERR] Could not create Application Pool.

Error 4034. There was an error during the IIS configuration process while trying to install Application pool 'xxxxxxxxx'.

Your original IIS configuration will be restored.
MSI (s) (70!B0) [18:00:40:712]: Product: CorrRisk Web Application R5.0.5.0 -- Error 4034. There was an error during the IIS configuration process while trying to install Application pool 'xxxxxxxxx'.

Your original IIS configuration will be restored.

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Error from AI_IIsConfig after upgrading to Advanced Installer 19

Thu Feb 17, 2022 12:19 pm

Hello and welcome to our forums,

For now, unfortunately, I can not say why this is happening.

As previously mentioned, I have already created a ticket so our dev team can have a look over this scenario.

Once I will have more information, I will update this thread.

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

AndyL
Posts: 22
Joined: Tue Jan 26, 2021 12:58 pm

Re: Error from AI_IIsConfig after upgrading to Advanced Installer 19

Fri May 20, 2022 10:36 am

Has there been any response from the dev team on this issue yet?

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Error from AI_IIsConfig after upgrading to Advanced Installer 19

Tue May 24, 2022 2:17 pm

Hello Andy,

This issue is currently under investigation on our side, but unfortunately we were not able to find the culprit just yet.

I will let you guys know as soon as I will have more information on this.

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

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Error from AI_IIsConfig after upgrading to Advanced Installer 19

Fri May 27, 2022 2:34 pm

Hello Andy,

Please note I have sent you an email regarding this issue.

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

Return to “Common Problems”