PDA

View Full Version : Registry Check



SteffX
12-23-2002, 11:28 AM
Hi,

I would like to make a software requirement, i created an Ini file called IBInstalled.ini and putted it in the "searches" directory.

Here is the file :

[Title0409]
Name=Interbase
Type=Registry
Desc=Looks for the existance of Interbase on a system.

[AppSearch]
Signature_=FindIB
Property=IBFOUND

[RegLocator]
Records=Reg1

[Reg1]
Signature_=FindIB
Root=2
Key=Software\Borland\InterBase\CurrentVersion
Name=ServerDirectory
Type=2

[ExpressCondition0409]
Name=IB is Installed
Condition=IBFOUND<>""
HelpFile=ITargetSysReqMDAC.htm
Message=IB installed.

The key [HKEY_LOCAL_MACHINE]\Software\Borland\InterBase\CurrentVersion] exists and the value "ServerDirectory" is not null.

When I put a red cross in the requirement, ISE don't stop the install process... What could be wrong ???

Regards

Chandima
01-06-2003, 03:52 PM
Putting the "Red cross" icon means the setup will stop only of this registry key is NOT found. Try changing it to the green check mark. This means it will install only if this key is found.

SteffX
01-06-2003, 04:17 PM
and how can I tell to check if the key exists ?
I would like to launch a custom action if the key exists...

Chandima
01-06-2003, 05:32 PM
1. Go to the Requirements View
2. Change the state of the search to the "empty box" icon
3. Go to Custom Actions View
4. Create and configure the custom action
5. Select the Custom Action's Condition property and launch the dialog
6. Select the "Software" tab and set the searches icon to the green check state.
7. Build and install.

Should launch the Custom Action only of the key is found.