Try placing the Shortcut element under the Component instead of the File
like the sample at
http://wix.sourceforge.net/manual-wix3/create_start_menu_shortcut.htm. You
would set the WorkingDirectory property to DesktopFolder.

-farooq

-----Original Message-----
From: Sudripta Nandy [mailto:sudrip...@sarangsoft.co.in] 
Sent: Wednesday, October 07, 2009 10:56 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Unable to create app shortcut on desktop

In my setup, I need to create a shortcut to my application executable on the
desktop. I am doing the following:

<Component Id='SSComponentMyApp' Guid='B52F5FD8-6699-4816-BCAB-D9D7B4C88A42'
>
    <File Id='SSFileMyApp' Name=MyApp.exe' DiskId='1' Source ='MyApp.exe'>
        <Shortcut Id="SSLinkMyApp" Directory="DesktopFolder" Name="My App"
WorkingDirectory='INSTALLDIR' Advertise="yes" />
    </File >
</Component>


But, curiously I get an error from Light. It says,
error LGHT0094: Unresolved reference to symbol 'Directory:DesktopFolder' in
section 'Product:{A166EEDA-3125-4a8c-BCF0-AC87C0F6F5A0}'.

I am using wix 3.0.

Any ideas...



Thanks,
// Sudripta Nandy.
----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to