This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Are the component conditions evaluated in an administrative installation?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 25, 2011
02:13 AM
Are the component conditions evaluated in an administrative installation?
Hi there,
I am working on a Basic MSI project, trying to implement the administrative installation sequence.
I have a few components that install various versions of the same file in the same target folder.
These components have conditions based on the value of one property.
What I see in the log file is that all components are administratively installed to the destination network share, as if the conditions were all evaluated to "TRUE".
As a result, the file of MyComponentC is the one that is finally installed to the network share, as it is the last one in the Component table.
My questions:
Any help would be greatly appreciated.
I am working on a Basic MSI project, trying to implement the administrative installation sequence.
I have a few components that install various versions of the same file in the same target folder.
These components have conditions based on the value of one property.
- MyComponentA: File: MyFile, Target: MyTarget, Condition: MYPROPERTY=ValueA
- MyComponentB: File: MyFile, Target: MyTarget, Condition: MYPROPERTY=ValueB
- MyComponentC: File: MyFile, Target: MyTarget, Condition: MYPROPERTY=ValueC
What I see in the log file is that all components are administratively installed to the destination network share, as if the conditions were all evaluated to "TRUE".
As a result, the file of MyComponentC is the one that is finally installed to the network share, as it is the last one in the Component table.
My questions:
- Am I right in thinking that the component conditions are not evaluated in an administrative installation?
- Is there a way to force Windows installer to evaluate the component conditions in an administrative installation?
Any help would be greatly appreciated.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 28, 2011
04:01 PM
Correct; an administrative install should be usable to install any configuration of the product. The conditions might be evaluated differently on each client of this network image.
For how to fix this, change the Source Location related to each of the directories of these files (for example in the properties dialog of the folder in the Files and Folders view). You may need to separate these files into multiple folders with the same Target in order to give them different Source Locations.
For how to fix this, change the Source Location related to each of the directories of these files (for example in the properties dialog of the folder in the Files and Folders view). You may need to separate these files into multiple folders with the same Target in order to give them different Source Locations.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 22, 2011
05:22 AM
Hi Michael,
Thanks for the info. I will give it a try.
Just one more thing if someone else faces the same issue: I had to enable the option "Always show directory nodes with different IDs separately" under Tools->Options->Directory, so I could see the various target folders of my conditional components.
Regards
Thanks for the info. I will give it a try.
Just one more thing if someone else faces the same issue: I had to enable the option "Always show directory nodes with different IDs separately" under Tools->Options->Directory, so I could see the various target folders of my conditional components.
Regards
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 25, 2011
05:54 AM
Hi Michael,
It works like a charm. So once again, thank you very much!
Regards
It works like a charm. So once again, thank you very much!
Regards
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)