how to have the msi not install if software prereqs.... - Advanced Installer Community

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!

davidsmith
Posts: 59
Joined: Sun Jul 12, 2009 8:33 pm

how to have the msi not install if software prereqs....

I have two builds within my installer: .exe + .msi.

I have software prerequisites defined, and they work fine as part of the bootstrapper software.

How can I enforce it so that the .msi file will not install if the prerequisites are not installed?

Do I need to manually add them as "Custom Launch Conditions"? If so, how do I do that?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: how to have the msi not install if software prereqs....

Hi,
How can I enforce it so that the .msi file will not install if the prerequisites are not installed?
Follow these steps:

- double click the prerequisite
- in the Edit Prerequisite dialog that appears go to Options tab
- here check “Force installation of this prerequisite” checkbox
This option will not allow the installation of the product until the prerequisite is installed.
Do I need to manually add them as "Custom Launch Conditions"? If so, how do I do that?
In case the MSI file is launched separately from the EXE bootstrapper then you need to create a Custom Launch Condition, just as you said. To do so, follow these steps:

- create a New Search in the Search page
- this search will look for a resource (files or registry value) installed by the prerequisite
- the result of the search is returned through its name, which is a property
- into the Condition field of the dialog New Launch Condition enter the search property
This way the MSI file will allow installation only if the search is successfull.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
davidsmith
Posts: 59
Joined: Sun Jul 12, 2009 8:33 pm

Re: how to have the msi not install if software prereqs....

Is there anyway I can reuse the "PreReqSearch" searches created by the installer for the prerequisite "search criteria" I specified in the "Software Prerequisites" tab rather than create my own?

I see them as

"PreReqSearch"
"PreReqSearch_3"
"PreReqSearch_4"

but I can't figure out how to reuse them.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: how to have the msi not install if software prereqs....

Hi,

I'm not sure what you are referring to, could you please send us a screen shot with the values you've enumerated at support at advancedinstaller dot com.
Note that prerequisites searches can't be copied, they must be replicated manualy.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
davidsmith
Posts: 59
Joined: Sun Jul 12, 2009 8:33 pm

Re: how to have the msi not install if software prereqs....

They are actually Windows installer properties that the installer creates when I create prerequisite conditions.

I uploaded the jpg screen shot as an attachment to this message.
Attachments
installerprops.JPG
installerprops.JPG (30.95 KiB) Viewed 11139 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: how to have the msi not install if software prereqs....

Hi,

These properties shouldn't be shown in the properties picker (it'a bug which will be fixed in a future version). Thank you for bringing this to our attention. Unfortunately the prerequisite searches cannot be copied into the MSI, they need to be replicated manually.

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

Return to “Common Problems”