Installing files for multiple components

Got a problem you cannot solve? Try here.
seanmckenna
Posts: 46
Joined: Tue Aug 22, 2006 9:16 am
Location: NorthEast, USA
Contact:

Installing files for multiple components

Postby seanmckenna » Tue Aug 22, 2006 9:51 am

Hello, I searched around for this, but couldn't find anything.

I would like to install some files if Feature1 OR Feature2 has been selected. At first I assumed that I could simply get the selected state of each component and use an If to OR them together.

Of course, now I have come to find out that there is no such thing as OR in MSI Code! Is there anything I can do? This doesn't seem like it should be so difficult.

Thanks.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue Aug 22, 2006 10:52 am

Hi Sean,

You can just install the Eval plug-in (available free from the Plug-Ins section of this forum) - that supports complex evaluations, including OR.

If you want to go native, just do something like this in pseudocode:

Code: Select all

Set COMMONFEATURE to FALSE
If FEATURE1 is SELECTED then COMMONFEATURE = TRUE
If FEATURE2 is SELECTED then COMMONFEATURE = TRUE


Whichever one works for you!
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

seanmckenna
Posts: 46
Joined: Tue Aug 22, 2006 9:16 am
Location: NorthEast, USA
Contact:

Postby seanmckenna » Tue Aug 22, 2006 11:17 am

Ok, thanks. So I thought that eventhough I am using the trial version, I was still seeing all of the functionality.

Are there any other major parts that the evaluation version is missing?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue Aug 22, 2006 11:36 am

Hi Again,

This isn't an evaluation restriction at all - the evals are fully functional! We don't want to inconvenience you in any way, before or after your purchase (ex: our product activation does not require an Internet connection).

The plug-in was built by the InstallAware community, along with many other helpful plug-ins - which are all available free (and some, including Eval, with source code). So just browse to the plug-ins section of this forum and fortify your InstallAware installation with even more tools and power!
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

seanmckenna
Posts: 46
Joined: Tue Aug 22, 2006 9:16 am
Location: NorthEast, USA
Contact:

Postby seanmckenna » Tue Aug 22, 2006 1:21 pm

Ok, I see. Its called "Eval" in terms of Evaluating a conditional? I was thinking of "Eval" as Evaluation software.

Haha, it all makes sense now, thanks.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 179 guests