Add a RemoveFolder to your start menu.  RemoveFolder will only remove
empty folders.

Description 
Remove an empty folder if the parent component is selected for
installation or removal. By default, the folder is the directory of the
parent component. This can be overridden by specifying the Directory
attribute with a value corresponding to the Id of the directory, or by
specifying the Property attribute with a value corresponding to a
property that will have a value that resolves to the full path of the
folder.

-----Original Message-----
From: Sean Farrow [mailto:sean.far...@seanfarrow.co.uk] 
Sent: Friday, March 23, 2012 2:38 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Repairing ice64
Importance: High

Hi Folks:
I'm currently writing the first of what could be many installers for a
company.
I have the following inside the TARGETDIR directory:
<Directory Id="ProgramMenuFolder">
        <Directory Id="COMPANYSTARTMENUFOLDER" Name="Raised Bar">
          <Directory Id="ApplicationProgramsFolder" Name="Surface
Reader"/>
        </Directory>
        </Directory>
I then have a component that installs a shortcut:
<DirectoryRef Id="ApplicationProgramsFolder">
      <Component Id="ApplicationShortcut">
        <Shortcut Id="ApplicationStartMenuShortcut"
                  Name="Surface Reader"
                  Description="Allow access to MIDI control surfaces"
                  Target="[APPLICATIONROOTDIRECTORY]Surface
Reader.exe.exe"
                  WorkingDirectory="APPLICATIONROOTDIRECTORY"/>
        <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
        <RegistryValue Root="HKLM" Key="Software\Raised Bar\Surface
Reader" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
      </Component>
    </DirectoryRef>
I am successfully removing the ApplicationProgramsFolder, as can be seen
above. But I'm getting an ice64 telling me that the
"COMPANYSTARTMENUFOLDER" is not removed. Given that there could be other
products in the future, what is the best way of getting around this
issue?
Any help accepted.
Regards
Sean.

------------------------------------------------------------------------
------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to