You are trying to remove a directory that does not exist. Missing folder property: APPLICATIONDATAFOLDER
and you are not creating it as a directory: <Fragment> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLFOLDER" Name="Wix example application" /> </Directory> </Directory> </Fragment> Instead searching the registery: <Property Id="APPLICATIONDATAFOLDER"> <RegistrySearch Key="SOFTWARE\[ManufacturerName]\Me" Root="HKLM" Type="raw" Id="APPLICATIONDATAFOLDER_REGSEARCH" Name="Path" /> </Property> <!-- We need to use APPLICATIONFOLDER variable here or RemoveFolderEx will not remove on "install". --> <util:RemoveFolderEx On="uninstall" Property="APPLICATIONDATAFOLDER" /> How do you know that the drive letter will always be h:? Value="h:\topfolder\middlefolder" Instead you should be using the WIX Registry Element. http://wixtoolset.org/documentation/manual/v3/xsd/wix/registry.html On Thu, Dec 4, 2014 at 11:16 AM, Samir <samir.elyahia...@hiq.se> wrote: > Hello everyone, > > I'm trying to remove some folders that will be created after the > installation on network drive H:. > > This is the structure of the folders that I'm trying to remove: > < > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/file/n7598399/folderStructure.png > > > > What happends is that only the folder named "bottomfoldertwo" is removed > and > the files inside bottomfoldertwo and bottomfolderone. > > What I also noticed is that when I try to run the code against the same > folder structure placed on C drive instead of H, all the files get removed. > > So my question is: Why are the not all files removed on H drive. > > The project and logfiles can be found here: > RemoveFromHDrive.zip > < > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/file/n7598399/RemoveFromHDrive.zip > > > > Regards Samir > > > > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Cant-get-util-RemoveFolderEx-to-work-on-network-drive-tp7598399.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > 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 > -- "They may forget what you said but they will never forget how you made them feel." -- Anonymous ------------------------------------------------------------------------------ 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