the problem was i had not mention the directody attribute for <RemoveFolder
Id='ProgramMenuDir'>.
If the 'Directory' attribute is omitted, it takes the directory of the
parent component. In my case, it is a directory with Id="EFIMonarch". This
explains why i was getting the warning for the outer directory
(ProgramMenuDir), but didn't get it for EFIMonarch directory.

<Directory Id="ProgramMenuFolder" Name="Programs">
     <Directory Id="ProgramMenuDir" Name="EFI">
          <Directory Id="EFIMonarch" Name="EFI Monarch">
                 <Component Id="EFIMonarch"
Guid="E510F3DA-82AA-11DF-8814-8970DFD72085">
                        <RemoveFolder Id='EFIMonarch' On='uninstall' />
                         <RemoveFolder Id='ProgramMenuDir'
Directory='ProgramMenuDir' On='uninstall' />
                         <RegistryValue Root='HKCU'
Key='Software\[Manufacturer]\[ProductName]' Type='string' Value=''
KeyPath='yes'/>
                  </Component>
           </Directory>
     </Directory>
</Directory>


On Tue, Jul 20, 2010 at 9:57 PM, Pally Sandher <pally.sand...@iesve.com>wrote:

> Try removing the Name attribute from the ProgramMenuFolder Directory
> element & try giving your RegistryValue a Name attribute.
>
> Palbinder Sandher
> Software Deployment & IT Administrator
> T: +44 (0) 141 945 8500
> F: +44 (0) 141 945 8501
>
> http://www.iesve.com
> **Design, Simulate + Innovate with the <Virtual Environment>**
> Integrated Environmental Solutions Limited. Registered in Scotland No.
> SC151456
> Registered Office - Helix Building, West Of Scotland Science Park,
> Glasgow G20 0SP
> Email Disclaimer
>
>
> -----Original Message-----
> From: subrat agasti [mailto:subrat.w...@gmail.com]
> Sent: 20 July 2010 06:40
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Directory xxx is in the user profile but is
> notlisted in the RemoveFile table
>
>   even after adding the <RemoveFolder> element, I am getting the same
> error.
>   this is the directory structure that i am using.
>
>        <Directory Id="ProgramMenuFolder" Name="Programs">
>            <Directory Id="ProgramMenuDir" Name="EFI">
>                  <Directory Id="EFIMonarch" Name="EFI Monarch">
>                      <Component Id="EFIMonarch"
> Guid="E510F3DA-82AA-11DF-8814-8970DFD72085">
>                            <RemoveFolder Id='EFIMonarch' On='uninstall'
> />
>                    <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
>                        <RegistryValue Root='HKCU'
> Key='Software\[Manufacturer]\[ProductName]' Type='string' Value=''
> KeyPath='yes' />
>                      </Component>
>                  </Directory>
>            </Directory>
>          </Directory>
>
> On Tue, Jul 20, 2010 at 11:03 AM, subrat agasti
> <subrat.w...@gmail.com>wrote:
>
> > even after adding the <RemoveFolder> element, I am getting the same
> error.
> >
> >
> > On Wed, Jul 7, 2010 at 1:47 PM, Blair <os...@live.com> wrote:
> >
> >> Add an additional <RemoveFolder> element targeting ProgramMenuDir in
> >> your ProgramMenuDirMonarch component. There is no limit to the number
>
> >> of RemoveFolder elements you can have in the same component.
> >>
> >> -----Original Message-----
> >> From: subrat agasti [mailto:subrat.w...@gmail.com]
> >> Sent: Wednesday, July 07, 2010 1:05 AM
> >> To: wix-users@lists.sourceforge.net
> >> Subject: [WiX-users] Directory xxx is in the user profile but is not
> >> listed in the RemoveFile table
> >>
> >> When iam trying to create the installer i am getting the following
> error.
> >>
> >> The directory ProgramMenuDir is in the user profile but is not listed
>
> >> in the RemoveFile table.
> >>
> >> How do i resolve this issue?
> >> below is the directory structure i am using.
> >>
> >> <Directory Id='TARGETDIR' Name='SourceDir'>
> >>      <Directory Id='ProgramFilesFolder' Name='PFiles'>
> >>        <Directory Id='EFI' Name='EFI'>
> >>        </Directory>
> >>      </Directory>
> >>      <Directory Id="ProgramMenuFolder" Name="Programs">
> >>        <Directory Id="ProgramMenuDir" Name="EFI">
> >>          <Directory Id="ProgramMenuDirMonarch" Name="EFI Monarch">
> >>            <Component Id="ProgramMenuDirMonarch"
> >> Guid="E510F3DA-82AA-11DF-8814-8970DFD72085">
> >>              <Shortcut Id="UninstallProduct"
> >>                         Name="Uninstall EFI Monarch V2"
> >>                         Description="Uninstalls EFI Monarch V2"
> >>                         Target="[System64Folder]msiexec.exe"
> >>                         Arguments="/x [ProductCode]"/>
> >>              <RemoveFolder Id='ProgramMenuDirMonarch' On='uninstall'
> />
> >>              <RegistryValue Root='HKCU'
> >> Key='Software\[Manufacturer]\[ProductName]' Type='string' Value=''
> >> KeyPath='yes' />
> >>            </Component>
> >>          </Directory>
> >>        </Directory>
> >>      </Directory>
> >>      <Directory Id="DesktopFolder" Name="Desktop" />
> >>    </Directory>
> >>
> >> ---------------------------------------------------------------------
> >> -------
> >> --
> >> This SF.net email is sponsored by Sprint What will you do first with
> >> EVO, the first 4G phone?
> >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> >> _______________________________________________
> >> WiX-users mailing list
> >> WiX-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wix-users
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> --------- This SF.net email is sponsored by Sprint What will you do
> >> first with EVO, the first 4G phone?
> >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> >> _______________________________________________
> >> WiX-users mailing list
> >> WiX-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wix-users
> >>
> >
> >
> ------------------------------------------------------------------------
> ------
> This SF.net email is sponsored by Sprint What will you do first with
> EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to