Prerequisites issue in silent mode - Advanced Installer Community
lakshman
Posts: 1
Joined: Thu Oct 24, 2019 10:49 am

Prerequisites issue in silent mode

Hi,

Currently we have a setup project for which we are installing .NET Framework 4.0, VC 2017 redistributable as Prerequisites but they are in "Feature-install" section, not in "Pre-install" section.

this is has no issue in GUI mode, but in silent mode i.e. "/qn" mode, prerequisites are being installed after main feature installation.

I tried to follow the link viewtopic.php?t=33726, but even after selecting the existing prerequisites, they are being moved to "Feature-based" section not to "Pre-install" section.

with "Pre-install" section, I think we can have only EXE version as per other threads, but we need to set registry values to run our components.

1. Is there any way to set the properties of msi package inside an EXE?
2. is there any way to fix this prerequisites issue in silent mode?

Thanks,
Lakshman.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Prerequisites issue in silent mode

Hello Lakshman and welcome to our forums,
but in silent mode i.e. "/qn" mode, prerequisites are being installed after main feature installation.
Indeed, as explained in the thread you've linked by my colleague, feature-based prerequisites are installed after the main installation. This is due to a Windows Installer limitation which does not allow two installations to happen at the same time.

In order to avoid such a behavior, you can simply move your VC++ Redistributable prerequisite from feature-based to pre-install.
with "Pre-install" section, I think we can have only EXE version as per other threads, but we need to set registry values to run our components.
Indeed, you are right here. Pre-install prerequisites are handled by our EXE bootstrapper, therefore an EXE setup will be necessary when having pre-install prerequisites in your package.
1. Is there any way to set the properties of msi package inside an EXE?
If by this, you mean you want to pass the properties through the command line, then yes, it is possible. In order to achieve this, you can use a command line as it follows:

Code: Select all

setup.exe YOUR_PROPERTY="Your Value"
2. is there any way to fix this prerequisites issue in silent mode?
I have answered this above. All you have to do is to move your Visual C++ Redistributable prerequisite from feature-based to pre-install, if you need the prerequisite to run before the main installation.

Hope this helps.

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

Return to “Common Problems”