I would suggest using two separate components for it.
Each Shortcut is really a file..
Then each would get its own HKCU registry entry.

Is your installer PerUser or PerMachine?
The HKCU entry might not be so appropriate for a PerMachine install.


Bevan

2013/12/13 Markus Ewald <[email protected]>:
> Hi!
>
> I'm trying to add a second start menu shortcut to my installer, but it 
> just doesn't add the second shortcut. I can't find any message 
> indicating why in msiexec's install log either.
>
>     <DirectoryRef Id="ApplicationProgramsFolder">
>
>        <Component Id="ApplicationShortcut" Guid="my-guid">
>
>          <Shortcut
>            Id="ApplicationStartMenuShortcut"
>            Name="My Application"
>            Description="My Application Description"
>            Target="[#myapplication.exe]"
>            WorkingDirectory="APPLICATIONROOTDIRECTORY"
>          />
>
>          <Shortcut
>            Id="ApplicationStartMenuShortcut2"
>            Name="My Application (OpenGL)"
>            Description="My Application Description"
>            Target="[#myapplication.exe]"
>            Arguments="-force-opengl"
>            WorkingDirectory="APPLICATIONROOTDIRECTORY"
>          />
>
>          <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall" />
>          <RegistryValue
>            Root="HKCU" Key="Software\Microsoft\MyApplicationName"
>            Name="installed" Type="integer" Value="1"
>            KeyPath="yes"
>          />
>
>        </Component>
>
>     </DirectoryRef>
>
> I've tried creating two components (but for some reason WiX then wants 
> a second registry entry, too, but insists on only a single 
> <RemoveFolder />), no success either.
>
> How can I get my second shortcut to appear in the start menu?
>
> Regards,
> Markus Ewald

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to