James Cox
Posts: 7
Joined: Mon Apr 16, 2007 9:53 pm

Forcing a pre-requisite to install

Hi,

As an alternative to my vcredist_x86.exe install problem, I'd like to know if there is a way to force a pre-requisite to run?

i.e. if I can always run "vcredist_x86.exe /q:a" then it will be guarrenteed to be installed with the version I want and is fairly painless for the user.

One point is that it can't be run during the actual main install, as it is uses windows installer itself. So it must be run before or after.

This one is driving me nuts. All help appreciated.

Cheers
James
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This can be done by setting for the prerequisite a condition which is always false. Note that in this case the bootstrapper will say that some of the prerequisites were not installed correctly.

Another option is to run the installation of "vcredist_x86.exe" as a custom action under the "InstallExecuteSequence" -> "InstallFinalize" standard action. You can read more about custom actions here:
http://www.advancedinstaller.com/user-g ... -page.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
James Cox
Posts: 7
Joined: Mon Apr 16, 2007 9:53 pm

Hi,

Thanks for the quick reply.

I'd rather not set the prerequisite condition always false, as you say this will cause the bootstrapper to say that some of the prerequisites were not installed correctly.

I tried running "vcredist_x86.exe" in "InstallExecuteSequence" -> "InstallFinalize", but it still says that the installation is running, so will not run "vcredist_x86.exe". Is there anyway to run this program outside of the Windows Installer being active with my install, or trigger it for install afterwards?

Cheers
James
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

A solution is to use a "DoAction" Published control event for the "Finish" button on the "ExitDialog". Note that in this case the custom action will be scheduled under the "UI Custom Actions" sequence in the "Custom Actions" page.

You can read more about the Events editor here:
http://www.advancedinstaller.com/user-g ... ditor.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”