Dear Advanced Installer community,
I am facing an issue when installing my MSI package via silent installation. The problem occurs after the installation finishes and I attempt to start a Windows Service that requires VCRedist to be present. It appears that the VCRedist prerequisite is either installed after the main silent installation process, causing the service to fail to start because the redistributable is installed afterwards, or it might be installed asynchronously. When the installation is performed through the GUI, it works perfectly fine.
Here are the installation steps:
1. Install VCRedist prerequisite.
2. Perform the main installation process.
3.Start Windows Service.
(During silent installation, at step 3, VCRedist is not installed yet, so the service fails to start.)
I recall seeing a thread a few months ago mentioning this as an MSI limitation, but I cannot find it anymore. The suggested workaround was to use a bootstrapper, which I would prefer to avoid.
Is there any solution to my problem other than using a bootstrapper? Another workaround I thought of is to install the prerequisites during the main installation using a normal command (PowerShell or a regular command) with a wait for the VCRedist installation to complete.
Thank you for your help!