guidway
Posts: 11
Joined: Fri Nov 02, 2007 4:03 am

search for prerequisite application

I'm trying to determine if an application exists on my machine before I install my package. I created a Search that looks for a specific registry key for this application (the reg key returns 1 in hex) if the application was found. Now using its property that is returned, I created a launch condition that reads if PREAPP_LOC = 1

This doesn't work. I seem to be doing something wrong. How do I check to see what the current value of the search property is so I can determine if that application is installed? thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that in your case the result of the property will actually be #1 (you can use the "Test Search" button on the toolbar to see the result of the search).

Therefore, the correct condition is:

Code: Select all

PREAPP_LOC = "#1"
The result of a search is always a string value, therefore you must use that result (property) in the form in which is returned (for example for DWORD the value has a "#" in front of it).
http://msdn2.microsoft.com/en-us/library/aa371171.aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”