Try Target="[#Life_Balance.exe]" in the shortcut element.


-- 
Bill Arnette 
www.signalscape.com 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Stuart A. Malone
> Sent: Wednesday, March 21, 2007 3:27 PM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Shortcut targeting file in a different component?
> 
> 
> Is it possible for a shortcut in one component to target an  
> executable file in a different component?  I can't figure out the  
> right syntax to make this work.
> 
> The reason I'm doing this is to try and give the user the option of  
> whether or not to install a desktop shortcut for our application.   
> The only way I can find of making the shortcut installation optional  
> is to put the shortcut in a separate component, and attach a  
> condition to that component.  Light seems happy with the 
> condition on  
> the component, but is complaining about my attempts to make the  
> shortcut.  I've been trying things like:
> 
>       <Directory Id="INSTALLDIR" Name="Life Balance">
>         <Component Id="MainApplication" Guid="...">
>           <File Id="Life_Balance.exe" name="Life Balance.exe" 
> Source="..."/>
>            </Component>
> 
>         <Component ID="DesktopShortcut" Guid="...">
>           <Condition>INSTALLDESKTOPSHORTCUT</Condition>
>           <Shortcut Id="DesktopShortcut" Directory="DesktopFolder"  
> Name="Life Balance"
>             Advertise="no" Icon="Application.ico" 
> Target="Life_Balance.exe"/>
>         </Component>
>       </Directory>
> 
> But this is giving me errors like:
> 
>       ICE03: Not a valid foreign key; Table: Shortcut, 
> Column: Target, Key 
> (s): DesktopShortcut
> 
>       ICE18: KeyPath for Component: 'DesktopShortcut' is Directory:  
> 'INSTALLDIR'. The Directory/Component pair must be listed in the  
> CreateFolders table.
> 
>       ICE43: Component DesktopShortcut has non-advertised 
> shortcuts. It  
> should use a registry key under HKCU as its KeyPath, not a file.
> 
>       ICE57: Component 'DesktopShortcut' has both per-user 
> and per-machine  
> data with a per-machine KeyPath.
> 
> If there is a better solution for this problem, I'd love to hear it.
> 
> 
> Thanks,
> 
> --Stuart A. Malone
>    Llamagraphics, Inc.
>    Makers of Life Balance personal coaching software
>    http://www.llamagraphics.com/
> 
> 
> 
> --------------------------------------------------------------
> -----------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the 
> chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge
&CID=DEVDEV
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to