Hi,

 

I'm having some trouble successdully creating shortcuts on the desktop
and in the start menu.  Here is my code :

 

<!--desktop shortcut-->

<Component Id="DesktopShortcut"
Guid="D92F6731-4EB0-4707-A71A-BB02DEA46689">

   <CreateFolder/>

   <RegistryKey Root="HKCU" Key="Software\Company\Application\Install"
Action="createAndRemoveOnUninstall">

     <RegistryValue Name="App" Value="1" Type="integer"/>

   </RegistryKey>

   <Shortcut Id="DesktopShortcut" Directory="DesktopFolder"
Name="App.ico" WorkingDirectory="INSTALLOCATION" Icon="App.ico"
Target="[INSTALLOCATION]App.exe">

      <Icon Id="App.ico" SourceFile="Files\App.ico"/>

   </Shortcut>

</Component>

 

 

<!--startmenu shortcut-->

<Component Id="ProgramFilesShortcut"
Guid="0FA5BEEC-C72D-44c7-9E27-44C16A26F025">

    <CreateFolder/>

    <RegistryKey Root="HKCU" Key="Software\Company\Application\Install"
Action="createAndRemoveOnUninstall">

       <RegistryValue Name="app1" Value="1" Type="integer"/>

    </RegistryKey>

    <Shortcut Id="ProgramFilesShortcut" Directory="ProgramMenuDir"
Name="App.ico" WorkingDirectory="INSTALLOCATION" Icon="App.ico"
Target="[INSTALLOCATION]App.exe">

       <Icon Id="App.ico" SourceFile="Files\App.ico"/>

    </Shortcut>

</Component>

 

The desktop shortcut appears but the target is wrong. The start menu
shortcut just doesn't seem to work.

 

Many thanks,

 

Alex

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to