Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 325947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:15:50+00:00 2026-05-12T09:15:50+00:00

Following some example code on the net, I got my first WiX installer to

  • 0

Following some example code on the net, I got my first WiX installer to work. However, it placed my program menu shortcut directly on Program Menus. I really want to create a folder, Sample, in Program Menus for my link.

Original Code:

<Shortcut Id="startmenuSample" Directory="ProgramMenuFolder" Name="Sample 0.5"
WorkingDirectory='INSTALLDIR' Icon="Sample.exe" IconIndex="0" Advertise="yes">

Attempt at modifying code (fails with compiler error):

<Shortcut Id="startmenuSample" Directory="ProgramMenuFolder\Sample" Name="Sample 0.5"
WorkingDirectory='INSTALLDIR' Icon="Sample.exe" IconIndex="0" Advertise="yes">

Note the addition of \Sample.

How do I go about adding that link to a new folder in the Program Menu?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T09:15:51+00:00Added an answer on May 12, 2026 at 9:15 am

    This is a sample test I did, when I was asked to do the same thing

    <Package InstallerVersion="200" Compressed="yes" />
    
    <WixVariable Id="Manufacturer" Value="StackOverFlowHelper"/>
    <WixVariable Id="ShortProduct" Value="ShortCuts"/>
    
    <Media Id="1" Cabinet="WixShortCut.cab" EmbedCab="yes" />
    
    <Icon Id="ShortCutIcon" SourceFile="YOUR.ico"/>
    
    <!-- The icon that appears in Add & Remove Programs. -->
    <Property Id="ARPPRODUCTICON" Value="ShortCutIcon" />
    
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
    
        <Directory Id="ManufacturerFolder" Name="!(wix.Manufacturer)">
          <Directory Id="INSTALLLOCATION" Name="!(wix.ShortProduct)">
            <Component Id="ProductComponent" Guid="{YOUR_GUID}" KeyPath="yes">
              <CreateFolder/>
            </Component>
          </Directory>
        </Directory>
        <Directory Id="ProgramMenuFolder">
          <Directory Id="ProgramMenuManufacturer" Name="!(wix.ShortProduct)" />
        </Directory>
      </Directory>
    </Directory>
    
    
    
    <DirectoryRef Id="ProgramFilesFolder">
      <Component Id="ProgramMenuShortcuts" Guid="{YOUR_GUID}">
        <CreateFolder Directory="ProgramMenuManufacturer"/>
        <RemoveFolder Id="RemoveMenuShortcuts" Directory="ProgramMenuManufacturer" On="uninstall" />
    
        <RegistryValue Root="HKCU" Key="Software\!(wix.Manufacturer)\!(wix.ShortProduct)" Name="InstalledStartMenuShortcuts" Type="integer" Value="1" />
      </Component>
    </DirectoryRef>
    
    <DirectoryRef Id="INSTALLLOCATION" FileSource="Files">
      <Component Id="WixShortCut" Guid="{YOUR_GUID}">
        <File Id="Test.ShortCut" Vital="yes" Name="A_DOC.pdf" />
    
        <CreateFolder />
        <RegistryKey Root="HKCU" Key="Software\!(wix.Manufacturer)\!(wix.ShortProduct)" Action="createAndRemoveOnUninstall">
          <RegistryValue Name="ShortCut" Value="1" Type="integer" KeyPath="yes"/>
        </RegistryKey>
    
        <!-- Shortcut in Start menu. -->
        <Shortcut Id="ProgramMenuApplicationShortcut" Name="!(wix.ShortProduct)" Target="[#Test.ShortCut]"
                            Directory="ProgramMenuManufacturer" Show="normal" Icon="ShortCutIcon"/>
      </Component>
    </DirectoryRef>
    
    <Feature Id="ProductFeature" Title="WixShortCuts" Level="1">
      <ComponentRef Id="ProductComponent"/>
      <ComponentRef Id="ProgramMenuShortcuts"/>
      <ComponentRef Id="WixShortCut"/>
    </Feature>
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 261k
  • Answers 261k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Well, you could create a Map<Integer, Class<? extends Base>> and… May 13, 2026 at 11:32 am
  • Editorial Team
    Editorial Team added an answer From MSDN: The random number generation starts from a seed… May 13, 2026 at 11:32 am
  • Editorial Team
    Editorial Team added an answer You can use the ZipFile class to check your file… May 13, 2026 at 11:32 am

Related Questions

Post Update: I have tracked down the problem at the command ExecuteNonQuery. That's the
I'm doing a raytracer hobby project, and originally I was using structs for my
.NET 3.5, C# I have a web app with a search feature. Some of
How feasible is it( and some guidance ) to build a WPF ( Silverlight

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.