namg_engr
namg_engr

Reputation: 359

Wix: Adding Icon to the start menu application folder

I'm looking for a way to add an icon to the start menu application folder using Wix. I already know how to add icons for shortcuts but the application folder doesn't appear to be a shortcut. Any help would be appreciated. Thanks.

Upvotes: 0

Views: 614

Answers (1)

Pavel Anikhouski
Pavel Anikhouski

Reputation: 23228

Since you haven't shared any code, there is an example

<Component Id="MainAppFile" Guid="*">
        <File Id="MainAppExecutable" Source="$(var.AppDir)$(var.AppFile)" KeyPath="yes">
          <Shortcut Id="StartMenuAppShortcut"
                    Name="$(var.ProductName)"
                    Advertise="yes"
                    Directory="ApplicationProgramsFolder"
                    WorkingDirectory="INSTALLLOCATION">
            <Icon Id="StartMenuIcon.ico" SourceFile="..\icon.ico"/>
          </Shortcut>
          <Shortcut Id="DesktopAppShortcut"
                    Name="$(var.ProductName)"
                    Advertise="yes"
                    Directory="DesktopFolder"
                    WorkingDirectory="INSTALLLOCATION" >
            <Icon Id="DesktopIcon.ico" SourceFile="..\icon.ico"/>
          </Shortcut>
        </File>
        <RemoveFolder Id="CleanupAppShortcut" Directory="ApplicationProgramsFolder" On="uninstall"/>
</Component>

Upvotes: 2

Related Questions