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
- :
- Install component on minor upgrade if other component is installed (Basic MSI)
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
‎Sep 09, 2011
03:28 AM
Install component on minor upgrade if other component is installed (Basic MSI)
I am working with a Basic MSI project that contains of one feature with many components.
I would like during upgrade that my installer reselects one of these components (call it componentA) for installation if another component (lets call that component componentB) was installed in the previously installed version.
I have tried setting the re-evaluate condition to Yes for the componentA and the condition: "?componentB=3" and also tried with "$componentB=3", but it is not working as intended.
Any other suggestions are most welcome.
I would like during upgrade that my installer reselects one of these components (call it componentA) for installation if another component (lets call that component componentB) was installed in the previously installed version.
I have tried setting the re-evaluate condition to Yes for the componentA and the condition: "?componentB=3" and also tried with "$componentB=3", but it is not working as intended.
Any other suggestions are most welcome.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 09, 2011
11:34 AM
Hi there,
I would create a System Search that based on the component's keypath. That will get you a property that you can use in a condition.
The way you were trying is said to work (see: http://msdn.microsoft.com/en-us/library/aa368007(v=vs.85).aspx), but I wouldn't bet that it works reliably. That said, one more thing to try is something like:
$componentB=3 OR ?componentB=3
You could also create a SetProperty custom action with a similar condition that sets COMPADDLOCAL:
http://msdn.microsoft.com/en-us/library/aa367995(v=vs.85).aspx
If none of these options work, then I would post the log, since something else is going on.
I would create a System Search that based on the component's keypath. That will get you a property that you can use in a condition.
The way you were trying is said to work (see: http://msdn.microsoft.com/en-us/library/aa368007(v=vs.85).aspx), but I wouldn't bet that it works reliably. That said, one more thing to try is something like:
$componentB=3 OR ?componentB=3
You could also create a SetProperty custom action with a similar condition that sets COMPADDLOCAL:
http://msdn.microsoft.com/en-us/library/aa367995(v=vs.85).aspx
If none of these options work, then I would post the log, since something else is going on.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 12, 2011
07:36 AM
Hi
I looked at System search and I agree it would be a good idea if I knew where the component was. The problem for me is that the user can define the path where this component is installed during installation. So I would have to search basically all local drives.
Could you please elaborate a little on what you mean by
"You could also create a SetProperty custom action with a similar condition that sets COMPADDLOCAL:"?
Thanks
I looked at System search and I agree it would be a good idea if I knew where the component was. The problem for me is that the user can define the path where this component is installed during installation. So I would have to search basically all local drives.
Could you please elaborate a little on what you mean by
"You could also create a SetProperty custom action with a similar condition that sets COMPADDLOCAL:"?
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 13, 2011
03:47 PM
Hi There,
The System Search will search based on where the component installs to, so this should pick up the user's selection.
Regarding the SetProperty/COMPADDLOCAL approach, you will create a SetProperty custom action with a similar condition, and set the value of the COMPADDLOCAL property to the Component Code of the component you want installed.
This marks the component for installation, as long as you sequence the SetProperty custom action before CostFinalize.
Does this make more sense?
The System Search will search based on where the component installs to, so this should pick up the user's selection.
Regarding the SetProperty/COMPADDLOCAL approach, you will create a SetProperty custom action with a similar condition, and set the value of the COMPADDLOCAL property to the Component Code of the component you want installed.
This marks the component for installation, as long as you sequence the SetProperty custom action before CostFinalize.
Does this make more sense?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 14, 2011
06:16 AM
Thanks for follow-up answer. Looks like I was to quick to dismiss the System Search.
Tested it now and it works as expected. Will probably go for this solution!
Tested it now and it works as expected. Will probably go for this solution!
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)