View Full Version : Simple question - how to use property created with AppSearch and RegLocator?

08-10-2004, 05:40 PM

I used AppSearch and RegLocator to creat a property, say MYREG. The property looks for a registry key, and I want to use it to determin if installation should continue or not.

Here is the way I created it:

AppSearch table:
Property Signature_
MYREG Signature_x

RegLocator table:
Signature_ Root Key Name Type
Signature_x 2 SOFTWARE\My App 2

How can I use 'MYREG' in the condition field? Can I use as 'Not MYREG' to represent the reg key is not found, and 'MYREG' as the key found?


08-10-2004, 09:53 PM
You can search for KB article Q103290, or on install condition in InstallShield.com Search (http://www.installshield.com/search/). Please note that it is not possible to use the RegLocator table to only check for the presence of the key, as indicated in RegLocator Table (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/reglocator_table.asp).

08-11-2004, 12:10 PM
Thank you for replying.

Is there a convenient way to check existence of a reg key/value and use it (existence) as condition, without writting a CA?


08-11-2004, 01:56 PM
Unfortunately, I don't see a way not using a custom action.

08-11-2004, 02:44 PM
The entry in the RegLocator needs to get the value of something, this is what the property would be equal to. So as long as the registry key that is specified will actually return something when it exists, then yes, you can do exactly what you want. I do this all the time.