Groups | Blog | Home
all groups > dotnet setup > june 2005 >

dotnet setup : What is wrong in "Launch Conditions" in Setup Project


Vitaly
6/15/2005 12:00:00 AM
Hi,
while developing Setup with VS7.1 I faced with some problem. In my project I
want check in Registry if there is SUN or IBM Java JRE in my computer. So in
Launch Conditions Editor I add two Registry Searches: IBM Java and SUN Java.
IBM Java Property should be "IBMJAVAHOME=CurrentVersion" and Sun Java
Property should be "SUNJAVAHOME=CurrentVersion". Now in Launch Conditions
Editor I write condition:
NOT (SUNJAVAHOME = CurrentVersion) AND NOT (IBMJAVAHOME = CurrentVersion)
If this is TRUE then should appear Dialog to install any JRE. The problem is
that this condition does not work. Empirically I realized that the right
condition is
NOT (SUNJAVAHOME = CurrentVersion) OR NOT (IBMJAVAHOME = CurrentVersion)

If I test only one JRE the condition
NOT (SUNJAVAHOME = CurrentVersion)
works.

Maybe somebody knows what is the problem?

Vitaly Shelest,
R&D,
Composia Software Ltd (former Anysoft Ltd)

Phil Wilson
6/15/2005 6:35:44 PM
You'd have to verify that your registry searches are working properly - do
you know that the search is actually working?

What's CurrentVersion? I don't understand what you mean when you say the
property should be "XXXHOME=CurrentVrtsion". The property from the registry
search is IBMJAVAHOME. Your launch condition could just be IBMJAVEHOME if
you don't care about what version is installed.

I would add two separate launch conditions - you don't need to collapse them
into one condition - then each message is specific to the thing that's
missing.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

[quoted text, click to view]

AddThis Social Bookmark Button