NSentinel
Posts: 32
Joined: Mon Oct 27, 2008 10:09 am

How to chain prerequisites to install simultaneously?

Hello,

I need to install with main prerequisites (Microsoft Visual Studio 2010 Report Viewer), also its language packs. How can I do that? Is prerequisites checked on startup only and I can use same condition (registry check for Microsoft Visual Studio 2010 Report Viewer) for both main files and LP? Or I have to use another way?

Thank you in advance.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to chain prerequisites to install simultaneously?

Hello,
I need to install with main prerequisites (Microsoft Visual Studio 2010 Report Viewer), also its language packs. How can I do that?
The prerequisites are installed in the order specified in the Prerequisite page. You can add Microsoft Visual Studio 2010 Report Viewer in the list and right after it, its language packs.
Is prerequisites checked on startup only and I can use same condition (registry check for Microsoft Visual Studio 2010 Report Viewer) for both main files and LP? Or I have to use another way?
You must have individual install conditions for each of your prerequisites. As our "Microsoft Visual Studio 2010 Report Viewer" predefined prerequisite has a registry check, you should also set the appropriate install condition for its language packs. As you may already know in order to have the "Microsoft Visual Studio 2010 Report Viewer" predefined prerequisite available from the Add -> Visual Studio Prerequisites menu, you must have Visual Studio 2010 installed on the same machine as Advanced Installer.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
NSentinel
Posts: 32
Joined: Mon Oct 27, 2008 10:09 am

Re: How to chain prerequisites to install simultaneously?

Thank you for answer.

I worried that maybe if I put same condition check for both main file and its LP when after installing primary package (and since modify e.g. registry with flag of its completed installation), condition for LP will match and LP will be skipped.

So If I understand correctly you iterate all prerequisites and its conditions on setup startup and build setup queue for them, after that all system modification will not refresh this queue until setup finished.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to chain prerequisites to install simultaneously?

Hello,
I worried that maybe if I put same condition check for both main file and its LP when after installing primary package (and since modify e.g. registry with flag of its completed installation), condition for LP will match and LP will be skipped.
You can also mark select "Microsoft Visual Studio 2010 Report Viewer" as the parent prerequisite of the language packs from the Option tab.
Please note that you cannot use the same detection criteria for the "Microsoft Visual Studio 2010 Report Viewer" and for its language packs. On a machine that already has the Microsoft Visual Studio 2010 Report Viewer installed but not its language packs the language packs will not be installed because the prerequisite criteria is already met.
So If I understand correctly you iterate all prerequisites and its conditions on setup startup and build setup queue for them, after that all system modification will not refresh this queue until setup finished.
Actually, all the conditions are evaluated at startup and a list with the prerequisites that need to be installed is created. The prerequisites are checked for install and installed. After each prerequisite is installed its conditions are gone through again to verify if the prerequisite was correctly installed.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
NSentinel
Posts: 32
Joined: Mon Oct 27, 2008 10:09 am

Re: How to chain prerequisites to install simultaneously?

Thank you for explanation and help!

Return to “Common Problems”