toosensitive
Posts: 30
Joined: Wed Dec 07, 2011 8:27 pm

msi installer does not install prerequisite

I use AI 11.4.1, I have two aip projects. one is to build msi installer and the other exe installer.

For the aip file to build msi:
I select "single MSI(resources inside)"
"archive installation files into CAB files"

For the aip file to build exe:
I select "single exc(resources inside)"
"archive installation files into CAB files"

Both aip files have prerequisite being .NET Framework 4.5.1 (web installer)
i.e. they have the same prerequisite settings (see attached pictures)

However, exe installer works fine, i.e. when there is no .net 4.5.1, it will install .net 4.5.1 first.
but msi installer does not install .net4.5.1 even if there is no .net4.5.1.

I attached my prerequisite settings and also the aip file to build msi installer. Thanks

I ran msi installer with log, it is so strange that I see the prerequisite condition is true but it should be false.
Part of the log is as following:

MSI (c) (D8!6C) [12:06:38:876]: Note: 1: 2205 2: 3: AI_PreRequisite
MSI (c) (D8!6C) [12:06:38:876]: Note: 1: 2228 2: 3: AI_PreRequisite 4: SELECT `PrereqKey`,`DisplayName`,`SetupFileUrl`,`Location`,`ExactSize`,`ComLine`,`BasicUiComLine`,`NoUiComLine`,`Options`,`Sequence`,`MD5`,`TargetName`,`Languages`,`Feature_`,`MissingCondition`,`RetValPropName`,`RepairComLine`,`UninstallComLine` FROM `AI_PreRequisite` ORDER BY `Sequence`
MSI (c) (D8!6C) [12:06:38:876]: PROPERTY CHANGE: Adding AI_PrereqsFulfilled property. Its value is '1'.
Action ended 12:06:38: AI_AppSearchEx. Return value 1.
MSI (c) (D8:C4) [12:06:38:878]: Doing action: FindRelatedProducts
Action 12:06:38: FindRelatedProducts. Searching for related applications
Action start 12:06:38: FindRelatedProducts.
Action ended 12:06:38: FindRelatedProducts. Return value 1.
MSI (c) (D8:C4) [12:06:38:880]: Skipping action: AI_DOWNGRADE (condition is false)
MSI (c) (D8:C4) [12:06:38:880]: Doing action: LaunchConditions
Action 12:06:38: LaunchConditions. Evaluating launch conditions
Action start 12:06:38: LaunchConditions.
Action ended 12:06:38: LaunchConditions. Return value 1.
MSI (c) (D8:C4) [12:06:38:880]: Doing action: AI_RESTORE_LOCATION
Attachments
prerequisite1.png
prerequisite1.png (110 KiB) Viewed 5595 times
prerequisite2.png
prerequisite2.png (131.38 KiB) Viewed 5595 times
AddIn_For_MSI.aip
(73.45 KiB) Downloaded 294 times
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: msi installer does not install prerequisite

Hi,

The MSI package cannot install the prerequisites because they are added as "pre-install" prerequisites, however those prerequisites can only be installed by the EXE Bootstrapper. They are included in the EXE Bootstrapper and installed before the MSI is launched.

I'm afraid that because of some Windows Installer limitations, the ".NET Framework" prerequisite can only be installed as a "pre-install" prerequisite from an EXE package. For more details you can read the Why does .NET Framework fails as feature-based prerequisite FAQ.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”