Thank you. It turned out that if I specify Target="[SystemFolder]javaw.exe" instead of merely Target="javaw.exe", the shortcut is created correctly.
I did try to read the verbose log, and I ran the log analyzer (wilogutl.exe from the Installer SDK) on the log, but I could not see any reported error. The installation seems to just fail silently. /Claus -----Original Message----- From: Pally Sandher [mailto:[email protected]] Sent: Thursday, June 25, 2009 5:19 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Creating a shortcut to an external program http://wix.sourceforge.net/manual-wix3/create_start_menu_shortcut.htm Also try looking at a verbose log of your installer during install. Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Claus Tøndering [mailto:[email protected]] Sent: 25 June 2009 15:57 To: [email protected] Subject: [WiX-users] Creating a shortcut to an external program I'm trying to write an installer for a Java program. I install a .jar file and try to create a shortcut that will execute javaw.exe with the jar file as its argument. Using WIX 2, I include these specifications: <Component Id='MainExecutable' Guid='9f9c2e87-32a3-439f-84e4-f48c98be5ac0'> <File Id='jfilejar' Name='jfile.jar' DiskId='1' Source='jfile.jar' Vital='yes'> <Shortcut Id="startmenujfile" Directory="ProgramMenuDir" Name="jfile" Target="javaw.exe" Arguments="-jar jfile.jar arg1 arg2" Icon="icon.ico" IconIndex="0" /> </File> </Component> When I run the installer, jfile.jar gets installed correctly and the installer doesn't complain about anythiing, but the shortcut is not created. What do I do wrong? Cheers, Claus Tondering ---------------------------------------------------------------------------- -- _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

