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 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 64k
  • Answers 64k
  • 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
  • added an answer It's termed URL rewriting: Url Rewriting with ASP.NET MSDN: URL… May 11, 2026 at 10:46 am
  • added an answer Do you know if you are using Suhosin with your… May 11, 2026 at 10:46 am
  • added an answer csc.exe compiles C# source code to MSIL. The JIT compiler… May 11, 2026 at 10:46 am

Related Questions

How do I create a branch in SVN?
How do I create an index on a column in MySQL v 5.0 (myisam
How do I create a branch in subversion that is deeper' than just the
How do I create class (i.e. static ) variables or methods in Python?
How do I create a button control (with CreateWindow of a BUTTON window class)
How do I create an RSS feed in ASP.NET? Is there anything built in
How do I create a resource that I can reference and use in various
How do I create an index on the date part of DATETIME field? mysql>
How do I create GUIDs (globally-unique identifiers) in JavaScript? The GUID / UUID should
How do I create a unique constraint on an existing table in SQL Server

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.