rmoc
Posts: 72
Joined: Tue Mar 14, 2017 8:27 pm

Installtion order of Feature-Based Prerequisite

I would like to install the Java 8 runtime as feature-based Prerequisite. I've added a custom action between MsiConfigureServices and StartServices action. When I run the installation with full UI, the prerequisite is installed and my custom action works fine. When I run with basic or none UI, the custom action starts before the Java runtime is installed. What I am doing wrong?
Horatiu
Posts: 42
Joined: Tue Nov 29, 2016 1:19 pm

Re: Installtion order of Feature-Based Prerequisite

Hello rmoc,

The issue is that Java 8 Runtime, is by default put in the feature-base prerequisite section, which with a full UI this prerequisite is installed during the Wizard Dialogs Stage. Because you selected no or basic UI this means it will be installed after the last stage, thus after your custom action.

To fix this issue just go in the Prerequisites tab in Advanced Installer, and move the Java 8 Runtime to the Pre-install section instead of the Feature-based section. This way Java Runtime will be installed before your package starts installing.

Let me know if you have any other issues.

Best regards,
~Horatiu
rmoc
Posts: 72
Joined: Tue Mar 14, 2017 8:27 pm

Re: Installtion order of Feature-Based Prerequisite

Hi Horatiu,

thanks for your answer. The problem is, I want a single msi file with feature based sub MSI. I think it's not possible (http://www.advancedinstaller.com/forums ... hp?t=27609). Can I use a custom action to install a MSI included in the main MSI?

Regards,
rmoc
Horatiu
Posts: 42
Joined: Tue Nov 29, 2016 1:19 pm

Re: Installtion order of Feature-Based Prerequisite

Hello rmoc,

Unfortunately, it's not possible to install an MSI included inside of a main MSI using a custom action. You will have to use an EXE wrapper as mentioned in the forum post you shared.

Best regards,
~Horatiu

Return to “Common Problems”