Use the Shortcut/@Target.  MSI SDK has documentation about the "Formatted 
topic" and how you can use the "[#FileId]" to refer to the path of files.

Can you suggest some text that would improve the Shortcut/@Target help?

-----Original Message-----
From: Markus Ewald [mailto:[email protected]] 
Sent: Wednesday, December 24, 2008 13:22
To: WiX Users Mailing List
Subject: [WiX-users] Shortcuts to <File /> in another <Feature />

Hi!

I'm trying to build an installer with two <Feature />s: One is for the 
core installation (which the user cannot deselect) and one is for an 
expansion pack to my application. Now my problem is that the expansion 
pack doesn't have a separate executable, it simply installs some 
additional files and starts the main executable with a special argument:

  <Component Id="Game" Guid="E0F7098E-11DB-402B-8B9D-7DA302F45EDF" 
DiskId="1">
    <File Source="..\MyGame\MyGame.exe" Name="MyGame.exe" Id="MyGame.exe" />
    <Shortcut Id="MyGame.lnk" Name="MyGame" />
  </Component>
  <Component Id="Expansion" Guid="D1F1EA3E-2BEA-4E4E-914E-DB07FF8B684A" 
DiskId="1">
    <Shortcut Id="MyGame.Expansion.lnk" Name="MyGame Expansion" 
Arguments="-basedir:xp1" />
  </Component>

I don't have the slightest idea how I can get the shortcut in the 
"Expansion" component to point at MyGame.exe from the "Game" component.
There seems to be no <FileRef /> element and the meaning of the 'Target' 
attribute in the <Shortcut /> element eludes me...

Can anyone point me in the right direction?

-Markus-

------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to