We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

maulik291
Posts: 4
Joined: Thu Nov 17, 2016 7:27 am

Installation sequence of prerequisites and main installer in silent installation

Hello,

When i execute installer with UI then first prerequisites will installed and then after main application will installed. Execution sequence will maintain properly without any fail. Main application will wait till prerequisites successfully installed.
If i procedure same thing using batch file in silent mode then its not working. Prerequisites and main application both are installed but the main application does not wait for prerequisites. If any issue occurred in prerequisites then main application should not install but in silent case main application install without checking prerequisites successful installation.

Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Installation sequence of prerequisites and main installer in silent installation

Hello,

The correct approach to this functionality is to add the prerequisites from the Prerequisites page. For each prerequisite:
- uncheck "Continue with main installation even if the prerequisite is not installed" option in the Properties tab
- set the correct silent command line in the Install Command Lines section from the in the Setup Files tab

This way when you execute the main installation silently, all prerequisites will be installed silently and the main installation will fail when one of the prerequisites fails. Make sure to read the user guide articles from the links above to understand how to use the options.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
maulik291
Posts: 4
Joined: Thu Nov 17, 2016 7:27 am

Re: Installation sequence of prerequisites and main installer in silent installation

Hello mihai.petcu,

I try it as per your steps but it will not work as expected.
Still same issue generate as i describe in my previous post.

I have prepare MSI project with prerequisites. prerequisites added as a feature-based prerequisites.

Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installation sequence of prerequisites and main installer in silent installation

Hello,

Indeed, if you are using feature-based pererquisites, during a silent installation, the main installation process won't wait and check the prerequisite installation status. This is due to a Windows Installer engine limitation. You cannot run two MSI-based installations at the same time (more exactly you cannot run two "Install Execution Stages" of two separate products at the same time). . This is why, during a silent installation, the feature-based prerequisites are installed as post-install prerequisites and these prerequisites are launched as an asynchronous process, for which the main process doesn't wait. When running with full UI the feature-based prerequisite installation is performed just before the "Install Execution Stage" of the main installation begins.

The only way to achieve what you want will be to add your prerequisites as pre-install prerequiste. But this option will force you to build an EXE setup package.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”