Hi,
It seems I've found a solution to the problem and the solution may help
others trying to do the same thing: I've put the Folder shortcut
component under the Shortcuts folder and added <CreateFolder> tag and
used Directory attribute to move the resulting shortcut to the Desktop.
Example:
<Directory Id="ProgramMenuFolder">
<Directory Id="Shortcuts" Name="$(var.ShortcutFolderName)">
<Component Id="ShortcutsRemove"
Guid="1a0690c0-d94e-4a78-afe5-44d6efef7c7b">
<RemoveFolder Id="ApplicationProgramsFolder"
On="uninstall" />
<RegistryValue Root="HKCU"
Key="Software\Fine\Cetrus" Name="Shortcuts" Type="integer" Value="1"
KeyPath="yes" />
</Component>
<Component Id="Folder.pif"
Guid="9ca28040-2b49-434c-a130-7ea7e52931d2">
<CreateFolder>
<Shortcut Id="Folder.pif"
Name="$(var.ShortcutFolderName)" Description="$(var.PackageComments)"
Directory="DesktopFolder" />
</CreateFolder>
<RegistryValue Root="HKCU"
Key="Software\Fine\Cetrus" Name="Folder.pif" Type="integer" Value="1"
KeyPath="yes" />
</Component>
</Directory>
</Directory>
<Directory Id="DesktopFolder" />
Ondrej Zarevucky
Ondrej Zarevucky wrote:
> Hi,
> I'm trying to create shortcut on desktop to shortcut folder in the Start
> Menu. But after I try the installation, the shortcut has only generic
> file icon and when clicked it opens "Open With" dialog.
>
> When I open the shortcut's properties dialog and try change it's icon
> and close the properties dialog with the OK button everyhting starts to
> work as expected.
>
> I'm using WiX 3.0.5419 and testing on Windows XP SP3.
>
> <Directory Id="ProgramMenuFolder">
> <Directory Id="Shortcuts">
> <Component Id="ShortcutsRemove"
> Guid="d417f0a4-3375-4506-a571-5bcd0611dec3">
> <RemoveFolder Id="ProgramsFolder" On="uninstall" />
> <RegistryValue Root="HKCU" Key="Software\Fine"
> Name="Shortcuts" Type="integer" Value="1" KeyPath="yes" />
> </Component>
> </Directory>
> </Directory>
>
> <Directory Id="DesktopFolder">
> <Component Id="Folder.pif"
> Guid="9ca28040-2b49-434c-a130-7ea7e52931d2">
> <Shortcut Id="Folder.pif"
> Name="$(var.ShortcutFolderName)" Description="$(var.PackageComments)"
> Target="[Shortcuts]" />
> <RegistryValue Root="HKCU" Key="Software\Fine"
> Name="Folder.pif" Type="integer" Value="1" KeyPath="yes" />
> </Component>
> </Directory>
>
> Can you please help me create shortcut on Dektop to our shortcuts
> folder? It should have the Windows default shortcuts folder icon and it
> should be installed for "All Users". When I tried to change the HKCU
> root to HKLM Candle throws many errors...
>
> Thank you
> Ondrej Zarevucky
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> 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