Though it feels like cheating, I was able to get it to work by wedging the
desktop shortcut into my start menu shortcuts and sharing the registry
entry for that component.

    <ComponentGroup Id="SHORTCUTS">
>       <ComponentRef Id="StartMenuShortcuts" />
>     </ComponentGroup>
>     <DirectoryRef Id="AppStartMenuFolder">
>       <Component Id="StartMenuShortcuts"
> Guid="F377176E-CC92-4996-90F3-164862F29687">
>         <Shortcut Id="DesktopShortcut" Name="LittleApp"
>                   Directory="DesktopFolder"
>                   Target="[INSTALLFOLDER]LittleApp.exe"
>                   WorkingDirectory="INSTALLFOLDER"/>
>         <Shortcut Id="ApplicationStartMenuShortcut" Name="LittleApp"
>                   Target="[INSTALLFOLDER]LittleApp.exe"
>                   WorkingDirectory="INSTALLFOLDER"/>
>         <util:InternetShortcut Id="DocumentationStartMenuShortcut"
> Name="LittleApp Support"
>                                Target="http://loqu8.com/support.htm"; />
>         <Shortcut Id="UninstallStartMenuShortcut" Name="Uninstall
> LittleApp"
>                   Target="[System64Folder]msiexec.exe"
>                   Arguments="/x [ProductCode]" />
>         <RemoveFolder Id="StartMenuFolder" On="uninstall"/>
>         <RegistryValue Root="HKCU" Key="Software\Loqu8\LittleApp"
> Name="shortcuts" Type="integer" Value="1" KeyPath="yes" />
>       </Component>
>     </DirectoryRef>





On Fri, Apr 13, 2012 at 12:09 PM, E. Timothy Uy <t...@loqu8.com> wrote:

> It would be nice if a "desktop shortcut" guide could be added to
> http://wix.sourceforge.net/manual-wix3/toc.htm. I'm lost. Here's my
> futile attempt.
>
>     <Directory Id="TARGETDIR" Name="SourceDir">
>       <Directory Id="ProgramFilesFolder">
>         <Directory Id="INSTALLFOLDER" Name="LittleApp" />
>       </Directory>
>       <Directory Id="ProgramMenuFolder">
>         <Directory Id="AppStartMenuFolder" Name="LittleApp" />
>       </Directory>
>       <Directory Id="DesktopFolder" Name="Desktop" />
>     </Directory>
>
>     <DirectoryRef Id="DesktopFolder">
>       <Component Id="DesktopShortcuts"
> Guid="A7319872-9A5C-4A04-BF08-5450D9247263">
>         <Shortcut Id="DesktopShortcut" Name="LittleApp"
>                   Target="[INSTALLFOLDER]LittleApp.exe"
>                   WorkingDirectory="INSTALLFOLDER"/>
>       </Component>
>     </DirectoryRef>
>
> Error 1 ICE18: KeyPath for Component: 'DesktopShortcuts' is Directory:
> 'DesktopFolder'. The Directory/Component pair must be listed in the
> CreateFolders table. D:\Temp\testInstall2\LittleAppSetup\Product.wxs 65 1
> LittleAppSetup
> Error 2 ICE38: Component DesktopShortcuts installs to user profile. It
> must use a registry key under HKCU as its KeyPath, not a file.
> D:\Temp\testInstall2\LittleAppSetup\Product.wxs 65 1 LittleAppSetup
> Error 3 ICE43: Component DesktopShortcuts has non-advertised shortcuts.
> It should use a registry key under HKCU as its KeyPath, not a file.
> D:\Temp\testInstall2\LittleAppSetup\Product.wxs 65 1 LittleAppSetup
>
>
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to