2008/10/22 Andrew Kendall <[EMAIL PROTECTED]>:
> Hi,
>
> I've worked out how to a top-level Program Menu entry which contains a nested
> list of shortcuts, viz:
>
> ...
> <Directory Id="ProgramMenuFolder">
> <Directory Id="ShortcutFolder" Name="AutoTrack">
> <Component Id="menu_SavoyCADExe"
> Guid="{8597C461-16C4-4E8B-A97C-A4B80813C522}">
> <Condition>NOT VersionNT64</Condition>
> <Shortcut Id="menu_SavoyCADExe" Directory="ShortcutFolder"
> Name="SavoyCAD"
> Icon="atricon.exe" IconIndex="0"
> Target="[INSTALLDIR]atr.exe" />
> <CreateFolder />
> <RemoveFolder Id="RemoveShortcutFolder" On="uninstall" />
> </Component>
> </Directory>
> </Directory>
>
> ...
I am not able to read the imperative and/or sequential way you wrote
your example:
Wix allows a declarative approach so I could separate things:
<!--Condition declaration>
Condition>NOT VersionNT64</Condition>
...
<!--Directory declaration>
<Directory Id="ProgramMenuFolder">
<Directory Id="ShortcutFolder" Name="AutoTrack">
</Directory>
</Directory>
...
<!--Component declaration>
<Component Id="menu_SavoyCADExe" Directory="ShortcutFolder"
Guid="{8597C461-16C4-4E8B-A97C-A4B80813C522}">
<Shortcut Id="menu_SavoyCADExe"
Name="SavoyCAD"
Icon="atricon.exe"
IconIndex="0"
Target="[INSTALLDIR]atr.exe" />
<CreateFolder />
<RemoveFolder Id="RemoveShortcutFolder" On="uninstall" />
</Component>
>
>
> Though I am able to attach icons to the nested shortcuts, is anybody able to
> tell me how to attach an icon to the top-level Program Menu item, ie. the
> "ShortcutFolder" item?
>
> Many thanks.
> Andrew
If I understand it well, you ask: how to change a folder icon?
Sorry if I misunderstood but this has nothing to do with Wix. MSDN
explains how to do it here:
http://msdn.microsoft.com/en-us/library/cc144102(VS.85).aspx
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users