<Icon Id="ProductIcon.ico" SourceFile="$(sys.SOURCEFILEDIR)logo.ico" />

<Shortcut Id="ProductShortcut" Name="$(var.displayName)" Description="The
$(var.displayName) application." IconIndex="0" Icon="ProductIcon.ico"
Target="[#Main.exe]" />

The Shortcut/@Directory attribute says which Start menu folder the shortcut
will be created in. If you prefer, you can omit it and place the component
containing the shortcut under a [directory or] directoryref to the Start menu
folder where you want it to appear.
Shortcut/@WorkingDirectory is a directory Id. When the shortcut is run, the
current directory for the new process will be set to that location.
As you can see in the sample, Shortcut/@Icon is the Id of an icon element. 
Iconindex is 0 for an ico file. If you specify an exe or dll instead of an
ico file, IconIndex is the index of an icon resource in that file.


-----Original Message-----
From: Subhasree Ramesh [mailto:subhasree.ram...@live.in] 
Sent: 06 April 2011 12:22
To: WIX Toolkit
Subject: [WiX-users] Shortcut creation using WIX


Hi All,
 
I found the WIX structure for shortcut entry in MSI.
I need some clarity on the attributes, Directory, WorkingDirectory, Icon and
IconIndex.
 
What needs to be the value for Directory and WorkingDirectory, if the
shortcut for App1.msi need to be under
ProgramFilesMenu/StartMenu/Applications?
 
There is an Icon table which holds the Name and Data of icons.
What exactly need to be under this Data attribute?
 
A sample code will be of great help.
 
Thanks in advance.
 
Subhasree                                         
-----------------------------------------------------------------------------
-
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to