Page 1 of 1
Installing files for multiple components
Posted: Tue Aug 22, 2006 9:51 am
by seanmckenna
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.
Posted: Tue Aug 22, 2006 10:52 am
by MichaelNesmith
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!
Posted: Tue Aug 22, 2006 11:17 am
by seanmckenna
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?
Posted: Tue Aug 22, 2006 11:36 am
by MichaelNesmith
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!
Posted: Tue Aug 22, 2006 1:21 pm
by seanmckenna
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.