Hi,

I’m pretty newbie on using WiX.  I’m having trouble with using
RemoveFolderEx in our installer sources.  Hope someone could help me with
this.



Our software application creates temporary folders in our installation
directory.  On uninstall these folders as well the root folder is not
getting removed due to the new temp folders existing.  I searched the wix
forums and found out that RemoveFolderEx could help scrubbing the folders
on uninstall.



I’m hitting into compilation issues with using RemoveFolderEx.  Any help on
this is greatly appreciated.  Below is the code snippet and the compilation
error.



<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";

     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>



…



<Property Id="APPFOLDER">

      <RegistrySearch Key="SOFTWARE\Microsoft\$(var.APPNAME)" Root="HKLM"
Type="raw" Id="APPFOLDER_REMEMBERED" Name="Path" />

</Property>



    <DirectoryRef Id="APPFOLDER">

      <Component Id="Cleanup" Guid="*">

        <RegistryValue Root="HKLM" Key="SOFTWARE\Microsoft\$(var.APPNAME)"
Name="Path" Type="string" Value="$(var.APPNAME)" KeyPath="yes" />

        <util:RemoveFolderEx On="uninstall" Property="$(var.APPNAME)" />

      </Component>

    </DirectoryRef>





…





error CNDL0005: The Component element contains an unexpected child element
'util:RemoveFolderEx'.



Thanks

Shyam
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to