Ghanu
Posts: 3
Joined: Thu Aug 26, 2021 11:05 am

Prerequisites not installed and IIS configuration process error while installing app pool

Thu Aug 26, 2021 11:23 am

Hi Team,
We are using the AI 17.2 version to build exe package setup, we are facing issue during IIS configuration process.

We are facing 2 issues:
1) During the prerequisites installation also we get error "manadatory prerequisite are not correctly installed" although it is installed in the background. This occurs sometimes.
2) IIS configuraiton error : "There was an error during the IIS configuration process while trying to install application pool ... Your original IIS configuration will be restored". We face this most of the times.

Please suggest something.

Thanks,
Ghanshyam

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Prerequisites not installed and IIS configuration process error while installing app pool

Thu Aug 26, 2021 1:27 pm

Hi Ghanshyam and welcome to our forums,
1) During the prerequisites installation also we get error "manadatory prerequisite are not correctly installed" although it is installed in the background. This occurs sometimes.
This could happen if the install conditions (you can check this in the "Prerequisites" page → "Install Conditions" tab of your prerequisite item) are not fulfilled after the prerequisite is installed on the related system. Maybe you can manually try to install the prerequisite package and check to see if the conditions are valid on the related system.

Also, this may happen if the IIS is disabled on the machine and the prerequisite needs IIS to be activated on it. You can find more information on this enable IIS during the installation article.
2) IIS configuraiton error : "There was an error during the IIS configuration process while trying to install application pool ... Your original IIS configuration will be restored". We face this most of the times.
This problem usually appears when IIS is busy configuring something else on the machine or when some settings cannot be applied because of insufficient permissions. Does this work if you restart the machine?

Hope this helps, otherwise can you please send us the .AIP (setup project) file and an installation log by email to support at advancedinstaller dot com so we can further test and investigate this?

You can create an installation log by launching your setup package with a command line like this:

Code: Select all

setup.exe /L*V "C:\installLog.txt"
when using an EXE package type.


Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Ghanu
Posts: 3
Joined: Thu Aug 26, 2021 11:05 am

Re: Prerequisites not installed and IIS configuration process error while installing app pool

Fri Aug 27, 2021 8:45 am

Hi Liviu,
Thanks for your timely response.

Issue 2 (IIS configuration process error): We did restart the system however the same error occured at the same step 2nd time. We ran the installer again (3rd time) after we faced error in 2nd step, made a change in the install directory path and this time it was successful without any issues.

Please suggest something to identify the root cause of this.

Thanks,
Ghanshyam

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Prerequisites not installed and IIS configuration process error while installing app pool

Fri Aug 27, 2021 1:30 pm

Hi Ghanshyam,
made a change in the install directory path and this time it was successful without any issues.
Changing the installation directory should not have changed the situation.

Unfortunately, without a log file, I cannot tell you what the problem could be.

Can you please send us the .AIP (setup project) file and an installation log when the installation fails by email to support at advancedinstaller dot com so we can further test and investigate this?

Also, can you please let me know if you were able to replicate the behavior on another machine or this behavior occurred on a single machine?

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Ghanu
Posts: 3
Joined: Thu Aug 26, 2021 11:05 am

Re: Prerequisites not installed and IIS configuration process error while installing app pool

Tue Aug 31, 2021 11:34 am

Hi Liviu,
We faced the IIS configuration error again, "There was an error during the IIS configuration process while trying to install virtual directory default web site/..". When we retry it worked without any error and installed.

Attaching a small snippet of error from the package logs :

Trying to get 'physicalPath' property of 'virtualDirectory' element.
Found property physicalPath; has VT=8 and Value='C:\Test\ProductName\ProductName470\WebSite\ProductName'.
Try to set Prop. 'physicalPath' to val 'C:\Test\ProductName\ProductName470\WebSite\ProductName' (vt=8) for 'virtualDirectory' Elem..
physicalPath property succesfully set.
UpdateProperties of 'virtualDirectory' Element successfully completed. 1 properties have been updated.
Committing changes to path 'MACHINE/WEBROOT/APPHOST'...
Commit done.
Successfully created Virtual Directory /ProductName470/
Successfully created root VirDir for WebApp '/ProductName470'.
Trying to set Access Policy values for 'Default Web Site/ProductName470'.
Changing commit path to 'MACHINE/WEBROOT/APPHOST'
Committing changes to path 'MACHINE/WEBROOT/APPHOST'...
Commit done.
Commit path changed.
Try to set Prop. 'accessPolicy' to val '513' (vt=22) for 'system.webServer/handlers' Elem..
accessPolicy property succesfully set.
Committing changes to path 'MACHINE/WEBROOT/APPHOST'...
COM Error : (The process cannot access the file because it is being used by another process.) Cannot execute Commit operation.
COM Error : (Unknown error 0xFFFFFFFF) Cannot execute Commit operation.
COM Error : (Unknown error 0xFFFFFFFF) Could not set AccessPerm entries for 'Default Web Site/ProductName470'.
COM Error : (Unknown error 0xFFFFFFFF) Could not set common entity properties.
COM Error : (Unknown error 0xFFFFFFFF) Could not create WebApp/VDir, isWebApp = true

MSI (s) (28!54) [09:50:36:892]: Product: ProductName 4.7.0 -- Error 4034. There was an error during the IIS configuration process while trying to install Virtual directory 'Default Web Site//ProductName470/'.

Your original IIS configuration will be restored.


Hope this helps you in identifying the issue.

Thanks,
Ghanshyam

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Prerequisites not installed and IIS configuration process error while installing app pool

Wed Sep 01, 2021 9:16 am

Hi Ghanshyam,

Code: Select all

(The process cannot access the file because it is being used by another process.
From the log, looks like the file is already in use.

Can you make sure that the file or the IIS is not in use when the installer is running and that the antivirus does not block the access to the file?

If you install the IIS after the .NET Framework, you can try to enable the IIS first.

Also this may happens when Windows have updates pending for configuration, so a reboot is required.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Prerequisites not installed and IIS configuration process error while installing app pool

Thu Sep 02, 2021 11:08 am

Hi Ghanshyam,

Thank you for your sent log and .aip file.

After I investigated them, I think I found what the problem is.

From your log I can see that the installation fails because of a file in use. In your .aip project, on the "Upgrades" page, you have the "Allow side by side installs of different product versions" option checked.

When using this you must respect some rules, for example the install locations should differ from one version to another. More information on the Upgrades page.

Otherwise when you try to install the new version into a location where there is already a web site deployed (by a previous version of your setup) and running, this could generate conflicts such as the new web site install cannot overwrite the old web site files since they are in use.

As a workaround, you need to either make sure you install the new version of your website into a different location (than the one of old web site installations) or you can check the "Automatically upgrade older product versions" from the "Upgrades" page. When this option is checked, the old version will be automatically uninstalled before installing the new one.

Let me know if this helped.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”