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

Create a custom software condition in installshield

Hi,
i need to check registry settings before installing a setup, for qwhich i need to add a custom software condition.Can any one plese guide me how to do it???
Labels (1)
0 Kudos
(3) Replies
rrinblue22
Level 9

In premier/pro edition you can use System search to check for the existence of the registry key and store that value in a public property.
Use this property in the Install Condition section under General Information.

That's it!!
0 Kudos
cpwinn
Level 3

I'm trying to do this same thing and the condition always fails when it should pass. I'm not sure if the registry search is bad or if the condition logic is bad.

I have a property called VISIONPATH that has a default value of "asdf". So first AppSearch runs to set my registry data to VISIONPATH. The log shows this result...
AppSearch: Property: VISIONPATH, Signature: NewSignature1
Action ended 8:35:54: AppSearch. Return value 1.

Does that mean it found the registry value or not?
Then my install condition, which uses
VISIONPATH <> "asdf"
, says that the value is still "asdf". So the installer quits.

Any ideas?
0 Kudos
cpwinn
Level 3

Turns out I found a solution for me at least. I went into Direct Editor and in the RegLocator table set the "Type" for my registry search to 2.

After that the AppSearch was able to find and set my property to the registry data.
0 Kudos