Bob,

thanks for the reply, however, that is not exactly what I want.  I may not 
have been clear, as I am not sure of the terms to use.  I do not want to 
have the VAR to expand on install.  I want it to expand when the user 
clicks the shortcut.  I can manually create a shortcut of 
"%JAVA_HOME%\bin\java -jar myfile.jar", but I could not figure out how to 
get this created using WIX.

Taking another look at this (it has been a few days) I was able to create 
my shortcut the way I wanted.  I set it up like and external command.

Target="[\%]JAVA_HOME[\%]\bin\javaw"
Arguments='"-jar" "[APPLICATIONROOTDIRECTORY]myfile.jar"'

Thanks again

Michael




Bob Arnson <b...@joyofsetup.com> 
08/22/2009 04:00 PM
Please respond to
"General discussion for Windows Installer XML toolset." 
<wix-users@lists.sourceforge.net>


To
"General discussion for Windows Installer XML toolset." 
<wix-users@lists.sourceforge.net>
cc

Subject
Re: [WiX-users] How To Create a shortcut with target variable that expands 
when selected





mfr...@fftw.com wrote:
> What I want is to have the shortcut target end up being 
> "%JAVA_HOME%\bin\java -jar myfile.jar"
>
> I cannot create valid syntax for any of the options I have tried 
(ICE03).
> 

Shortcut/@Target is formatted, so you can use the formatted [%VAR] syntax.

-- 
sig://boB
http://joyofsetup.com/



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
30-Day 
trial. Simplify your report design, integration and deployment - and focus 
on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



                                                                
*******************************************************************************
This e-mail message is intended solely for the use of the addressee.
The message may contain information that is privileged and 
confidential.
Disclosure to anyone other than the intended recipient is prohibited.
If you are not the intended recipient, please do not disseminate,
distribute or copy this communication, by e-mail or otherwise. Instead,
please notify us immediately by return e-mail(including the original
message with your reply) and then delete and discard all copies of the
message. We have taken precautions to minimize the risk of  transmitting
software viruses but nevertheless advise you to carry out your own
virus checks on any attachment to this message.  We accept
no liability for any loss or damage caused by software viruses.
*******************************************************************************


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to