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 134009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:32:09+00:00 2026-05-11T06:32:09+00:00

How do I create sub folders (several levels deep) in the Windows Start menu,

  • 0

How do I create sub folders (several levels deep) in the Windows Start menu, using WiX?

Currently I am able to put my shortcut in the Start menu, but only in a folder immediately under Programs (Start / Programs / MyFolder), but I want to nest my shortcut deeper (Start / Programs / MyPlatform / MyProduct / etc.). I tried different combinations, but alas.

<DirectoryRef Id='StartMenuMyProduct'>     <Component Id='ApplicationShortcut' Guid='{PUT-SOME-GUID-HERE}'>         <Shortcut Id='ApplicationStartMenuShortcut'                   Name='Configure My Product'                   Description='Add or remove this and that'                   Target='[MYPRODUCTDIR]ConfigureMyProduct.exe'                   WorkingDirectory='MYPRODUCTDIR'/>         <RemoveFolder Id='StartMenuMyProduct'                       On='uninstall'/>         <RemoveFolder Id='StartMenuMyPlatform'                       On='uninstall'/>         <RegistryValue Root='HKCU'                        Key='SOFTWARE\MyCompany\MyPlatform\My Product'                        Name='Installed'                        Type='integer'                        Value='1'                        KeyPath='yes'/>     </Component> </DirectoryRef>  <!-- Shortcut to the configuration utility in the Windows Start menu --> <Directory Id='ProgramMenuFolder'>     <!--<Directory Id='StartMenuMyPlatform' Name='MyPlatform'>-->       <Directory Id='StartMenuMyProduct' Name='My Product' />     <!--</Directory>--> </Directory> 
  • 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. 2026-05-11T06:32:10+00:00Added an answer on May 11, 2026 at 6:32 am

    What makes things interesting is that MSI demands a registry value to be created as a way to detect whether the component has been installed. If we prefer to create only one such registry value for all shortcuts, then we’ll have to put all our shortcuts in a single component.

    Fortunately it is possible to create components which span multiple target directories by making use of the Directory attribute on the Shortcut element.

       <!-- shortcuts to applications in the start menu -->    <DirectoryRef Id='ProgramMenuProductFolder'>       <Component Id='ProgramMenuShortcutsComponent' Guid='PUT-GUID-HERE'>          <!-- create folders -->          <CreateFolder Directory='ProgramMenuVendorFolder' />          <CreateFolder Directory='ProgramMenuProductFolder' />          <CreateFolder Directory='ProgramMenuSubFolder' />          <!-- remove folder -->          <RemoveFolder Id='RemoveProgramMenuVendorFolder'             Directory='ProgramMenuVendorFolder'             On='uninstall' />          <RemoveFolder Id='RemoveProgramMenuProductFolder'             Directory='ProgramMenuProductFolder'             On='uninstall' />          <RemoveFolder Id='RemoveProgramMenuProductSubFolder'             Directory='ProgramMenuProductSubFolder'             On='uninstall' />          <!-- main shortcut -->          <Shortcut             Id='MainShortcut'             Name='My Product'             Target='[SomeInstalledFolder]app1.exe' />          <!-- shortcut in subfolder -->          <Shortcut             Id='SubFolderShortcut'                          Name='mySubFolderShortcut'             Target='[SomeInstalledFolder]app2.exe'             Directory='ProgramMenuProductSubFolder' />          <!--             RegistryValue whichs serves as KeyPath          -->          <RegistryValue             Root='HKCU'             Key='Software\MyVendor\MyProduct'             Name='InstalledStartMenuShortcuts'             Type='integer'             Value='1' />       </Component>    </DirectoryRef>     <!-- shortcut directories -->    <Directory Id='ProgramMenuFolder'>       <Directory Id='ProgramMenuVendorFolder' Name='MyVendor'>          <Directory Id='ProgramMenuProductFolder' Name='MyProduct'>             <Directory Id='ProgramMenuProductSubFolder' Name='MySubFolder' />          </Directory>       </Directory>    </Directory> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 82k
  • Answers 82k
  • 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 To be able to monitor querys, you'll have to use… May 11, 2026 at 4:41 pm
  • Editorial Team
    Editorial Team added an answer Have you tried strValue Is Nothing? If that doesn't work,… May 11, 2026 at 4:41 pm
  • Editorial Team
    Editorial Team added an answer You need to release your buttons because you are allocating… May 11, 2026 at 4:41 pm

Related Questions

When creating a new ASP.NET application in Visual Studio, a couple of files and
I would like to create a sub folder in the controllers folder of an
I have all the forms in one folder and all the code modules in
I am new to Inno Setup. Stuck on one issue ~ how to configure

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.