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
- :
- How does custom action communicate with Condition
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
Nov 01, 2010
02:42 AM
How does custom action communicate with Condition
I am now working on a Custom Action retrieving certain register entry from system, then install proper component according to the register entry's value.
I am managed to write a vbs to retrieve register entry:
function readRegistry()
Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
notesPath = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Lotus\Notes\Path")
end function
And I know how to use the Condition to control the install process of specific component.
My question is, for the value I retrieved by the vbs, the "notesPath", how can I use this value to set up a Condition to control the install process of specific component? In other words, how does the Custom Action pass value to Condition.
Thank you for any suggestion.
I am managed to write a vbs to retrieve register entry:
function readRegistry()
Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
notesPath = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Lotus\Notes\Path")
end function
And I know how to use the Condition to control the install process of specific component.
My question is, for the value I retrieved by the vbs, the "notesPath", how can I use this value to set up a Condition to control the install process of specific component? In other words, how does the Custom Action pass value to Condition.
Thank you for any suggestion.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 03, 2010
03:57 PM
Your Custom Action must assign this value to a property, then Windows Installer can use this property in conditions.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)