Hi all,

I have the following fragment

  <Fragment>
    <!-- shortcut directories -->
    <DirectoryRef Id="TARGETDIR">
      <Directory Id="ProgramMenuFolder">
        <Directory Id="ProgramMenuVendorFolder" Name="$(var.MainInstallDir)">
          <Directory Id="ProgramMenuProductFolder" 
Name="$(var.ProductFullName)">
            <Directory Id="ProgramMenuProductDocumentationFolder" 
Name="Documentation" />
          </Directory>
        </Directory>
      </Directory>
    </DirectoryRef>

    <!-- shortcuts to applications in the start menu -->
    <DirectoryRef Id="ProgramMenuProductFolder">
      <Component Id="C_ProgramMenuShortcuts" 
Guid="33741C82-30BF-41AF-8246-44A5DCFCF953">
        <!-- remove folders -->
        <RemoveFolder Id="RemoveProgramMenuProductFolder" 
Directory="ProgramMenuProductFolder" On="uninstall" />
        <RemoveFolder Id="RemoveProgramMenuProductDocumentationFolder" 
Directory="ProgramMenuProductDocumentationFolder" On="uninstall" />

        <!-- main shortcuts -->
        <Shortcut Id="S_SdkToolInstallExamples" 
Target="[INSTALLFOLDER]Tool.exe" Name="Install Examples &amp; Exercises" 
Show="normal" WorkingDirectory="D_ExamplesTool" />

        <!-- documentation subfolder shortcuts -->
        <Shortcut Id="S_WhatsNewPdf" 
Directory="ProgramMenuProductDocumentationFolder" 
Target="[D_Documentation]$(var.ProductFullName) - What's New (Slides).pdf" 
Name="$(var.ProductFullName) - What's New" Show="normal" 
WorkingDirectory="D_Documentation" />

        <!-- RegistryValue whichs serves as KeyPath -->
        <RegistryValue
           Root="HKCU"
           Key="Software\$(var.MainInstallDir)\$(var.ProductFullName)"
           Name="InstalledStartMenuShortcuts"
           Type="integer"
           Value="1" />
      </Component>
    </DirectoryRef>

  </Fragment>

What I'm trying to achieve is to have a subfolders in my start menu.

Example:
-Start Menu Program
   - My Company
      - My product 1
      - Product that the fragment is above
      - Product 3


Now the following code works well on install. However, on uninstall it doesn't 
remove my start menu folders.
I have checked the log and tried several things but I wasn't able to make it 
work.

Any tip?

Mario Majcica

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to