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

  • Home
  • SEARCH
  • 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

Related Questions

Today at work we came across the following code (some of you might recognize
Following is some obviously-defective code for which I think the compiler should emit a
I have this .NET regex: ^(?<prefix>([^]*))\s(?<attrgroup>(\([^\)]*\)))\s(?<suffix>([^]*))$ It properly matches the following strings: some prefix
I noticed for a while now the following syntax in some of our code:
Hi I am quite new to php but i have been following some tutorials
Suppose I have the following code: class some_class{}; some_class some_function() { return some_class(); }
I'm considering the following: I have some data stream which I'd like to protect
I'm using the following to grab some updated HTML and insert it into a
What is the reason for the following warning in some C++ compilers? No newline
I got this from php.net website. This is related to the problem I am

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.