cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
wisonli
Level 2

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.
Labels (1)
0 Kudos
(1) Reply
Matthias1967
Level 5

Your Custom Action must assign this value to a property, then Windows Installer can use this property in conditions.
0 Kudos