cuthbe
Posts: 12
Joined: Thu Feb 23, 2006 12:05 pm

Running pre installation checks

How does one use the installer to check for certain registry keys before installed. Is this is condition
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

You can use one or more Registry Searches. For this purpose, switch to the Search page in AI and use the context menu commands. Alternatively, you can use the Search wizard (accessible through "Wizard -> Search").

You can use the result of the Search in any place where a Windows Installer Property can be used (in a Launch Condition, Custom Action etc).

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
cuthbe
Posts: 12
Joined: Thu Feb 23, 2006 12:05 pm

Does the search support regex, as i want to be able to search the registry for the following beginning of the key. Ie show me if there is any Java 1.5 installed on the system.

HKEY_CLASSES_ROOT\CLSID\{CAFEEFAC-0015


You can use one or more Registry Searches. For this purpose, switch to the Search page in AI and use the context menu commands. Alternatively, you can use the Search wizard (accessible through "Wizard -> Search").

You can use the result of the Search in any place where a Windows Installer Property can be used (in a Launch Condition, Custom Action etc).

Regards,
Denis[/quote]
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

Windows Installer does not support regular expressions.

The different versions of JRE available are enumerated under the following registry key:

Code: Select all

HKLM\SOFTWARE\JavaSoft\Java Runtime Environment
Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”