luke.batko
Posts: 8
Joined: Tue May 05, 2020 8:39 pm

Feature based prerequisites not installing during silent install

I have created a msi which uses another msi as a feature-based prerequisite. The prerequisite must be installed first. Both msis use elevation to install services running on the LocalSystem account. Installation works fine without /qn option. I am aware that you acknowledged this problem a while ago. Any updates or a workaround? Can I fix it using Orca?
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Feature based prerequisites not installing during silent install

Hello Luke and welcome to Advanced Installer forums,
I am aware that you acknowledged this problem a while ago.
I am not quite sure about which issue you are talking about. Could you please give me a link so I can further investigate this?

In what regards your scenario, please keep in mind that a feature-based prerequisite, when the main package is installed silently, is installed as a post-install prerequisite.

A feature based prerequisite is installed right when the user presses the "Install" button (right before the main package installation). However, since the main package runs silently, there is no UI displayed, therefore the feature based prerequisite needs to be installed after the main installation (as a post install).

Quick note: In order to modify the "Silent (no UI)" command line field for a prerequisite, the project must be of "Enterprise" type or above.

Additionally, in order to install a package silently, please keep in mind that you need to provide administrator privileges, meaning that you will need to launch the setup from an administrative command prompt (right click on cmd.exe --> "Run as administrator").

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
luke.batko
Posts: 8
Joined: Tue May 05, 2020 8:39 pm

Re: Feature based prerequisites not installing during silent install

Catalin,

Thanks for your reply. I have found this topic: viewtopic.php?t=35929. And you have stated there:
Hello Andreas,

I have tested your scenario and indeed, you are right, the "Feature-Based" prerequisites are not installed when the main package is installed silently. This seems to be an issue in what regards Advanced Installer.

A fix will be available in a future version of Advanced Installer.
I think this is very relevant to my case. Please confirm.

Thanks,

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

Re: Feature based prerequisites not installing during silent install

Hello Luke,

As you can see, I have notified the user that the issue was fixed:
Hello,

This was fixed in version 15.4 of Advanced Installer released on October 17, 2018.

All the best,
Catalin
If you are using an older version of Advanced Installer than that, then indeed this might be the issue.

If so, could you please try to update to a newer version of Advanced Installer than 15.4 and re-test this scenario?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
luke.batko
Posts: 8
Joined: Tue May 05, 2020 8:39 pm

Re: Feature based prerequisites not installing during silent install

Catalin,

I have the latest version of Advanced Installer.

I have created installation logs using msiexec demonstrating the problem, one was created with the /qn and one without. The prerequisite's name is gsw-uts-x64.msi and the log file msilog-ui.log shows that it is being installed find when UI is allowed.

More details. The prerequisite installs a service and creates a number of registry entries for the service. The main feature must be able to find that service, find those registry entries and modify them and this is why the prerequisite cannot be installed 'post-install'. In other words the main feature's setup needs to be able to find and use the prerequisite.
Attachments
msilog-ui.txt
without /qn
(332.35 KiB) Downloaded 447 times
msilog-qn.txt
with /qn
(296.03 KiB) Downloaded 416 times
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Feature based prerequisites not installing during silent install

Hello Luke,
The prerequisite installs a service and creates a number of registry entries for the service. The main feature must be able to find that service, find those registry entries and modify them and this is why the prerequisite cannot be installed 'post-install'
Well, if this is the case, then the only thing we can do here is to install the prerequisite as a pre-install prerequisites.

Please note that the pre-install prerequisites are handled by our EXE bootstrapper. With that being said, when adding your prerequisite as a pre-install prerequisite, the main package will turn into an EXE.

By default, the EXE has its own UI, therefore if you want to install both the main package and the prerequisite silently, you could use a command line such as follows:

Code: Select all

setup.exe /exenoui /qn
This way, the prerequisite will be installed before the main package and therefore the main package will be able to work with the settings (e.g. files / registry entries that the prerequisite installed).

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
luke.batko
Posts: 8
Joined: Tue May 05, 2020 8:39 pm

Re: Feature based prerequisites not installing during silent install

Catalin,

Thanks for further investigating the issue. The setup is going to be distributed and automatically installed using Group Policy Objects (GPO) so I presume it must be a MSI file. Or can I use EXE with GPO?

Thanks,

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

Re: Feature based prerequisites not installing during silent install

Hello Luke,
The setup is going to be distributed and automatically installed using Group Policy Objects (GPO)
Knowing this, the solution above is unfortunately out of the equation now. A setup.exe can not be distributed through GPO.

In order to overcome this, we can proceed as it follows:

- create an MSI boostrapper in which you can add, as feature-based prerequisites, both your packages: the main package and the prerequisite

- as the prerequisites are installed in the specified order, the prerequisite software needs to be placed before the main package

Additionally, in the boostrapper MSI, you can go to "Product Details" page --> "Add or Remove Programs (Control Panel)" section and disable the "Register product with Windows Installer" option.

This way, the boostrapper MSI will not appear in Control Panel. However, please keep in mind that this step is optional.

Hope this helps.

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

Return to “Common Problems”