Oops. Sorry Chris for the duplicate - I forgot to reply to all on the
first one.
Here's what I sent to Chris - others, tell me if this won't work, because
I may need this approach myself, later in my installer building process.
You could do custom actions that set another property based on its
previous existence...
consider a property named JVMHOME. Don't initialize (or create) it.
Write custom actions conditioned on JVMHOME existing, that in sequence set
the JVMHOME to another value if the appropriate variable is set.
For instance:
<CustomAction Id="setJVMpath1" Property="JVMPATH" Value="[JDKHOME15]"
...>JDKHOME15 AND NOT JVMPATH</CustomAction>
<CustomAction Id="setJVMpath2" Property="JVMPATH" Value="[JREHOME15]"
...>JREHOME15 AND NOT JVMPATH</CustomAction>
...
I think this will work. The ... in the <> are there because I don't know
what other properties you need to make this go into the proper sequence
etc. If you use this approach, please post back (or reply to me) with the
proper complete set of attributes so I'll know the next time.
Kelly
Chris Ridd <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
09/27/2007 08:58 AM
To
wix-users@lists.sourceforge.net
cc
Subject
[WiX-users] Searching for multiple registry keys
Hi again,
Some of my shortcuts call Java, and I need them to find the "right" one
when multiple versions are installed. So I set up 4 <Property> elements
which set JDKHOME15, JREHOME15, JDKHOME16, and JREHOME15 using
<RegistrySearch>.
It looks like these properties are being set correctly when I install
using msiexec and get verbose logging.
How do I set up a <Shortcut> to use [JDKHOME15]\bin\javaw if JDKHOME15 is
set, or [JREHOME15]bin\javaw if JDKHOME15 is not set and JREHOME15 is, or
[etc]? I can't work out the <Condition> syntax, and I can't work out how
to use a <Condition> with <Shortcut>s :-(
Am I even on the right track?
Cheers,
Chris
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
**************************************************************************************
This communication is intended solely for the addressee and is
confidential. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. Unless indicated
to the contrary: it does not constitute professional advice or
opinions upon which reliance may be made by the addressee or any
other party, and it should be considered to be a work in progress.
Unless stated otherwise, this communication does not form a prescribed
statement of actuarial opinion under American Academy of Actuaries
guidelines.
**************************************************************************************
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users