Hi. I've been working with wix 2.0 for some time, and have come across a very disturbing issue. I'm creating an MSI from a main setup.wxs file, which includes several other wxi files, and is "linked" with other fragments. The installation folder in the msi is defined like this :
<Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder" Name="PFiles"> <Directory Id="CompanyName" Name="SmartL" LongName="$(var.AppProviderName)"> <Directory Id="INSTALLDIR" LongName="$(var.ProductName)" Name="TLinkVo"> </Directory> </Directory> </Directory> <Directory Id="ProgramMenuFolder" Name="PMenu" LongName="Programs"> <Directory Id="ProgramMenuDir" Name="ProdName" LongName="$(var.ProductName)" /> </Directory> <Directory Id="DesktopFolder" Name="Desktop" /> <Directory Id="SystemFolder" Name="System" /> </Directory> The folders are not empty. i have a few components which install data into the installdir and to the system, and program menu. each of those components and features are in external fragments. the directory in PMenu, the Prodname is removed correctly when uninstalling the product. The directory INSTALLDIR fails to be removed for some reason. at first, i believed the problem was with my custom actions. after eliminating those CA's and still getting the same result, i suspected the setup.exe which launches the msi, and might not have been terminated by the time the folder needs to be deleted. this is not the case as well - by the time MSIEXEC loads the msi, the setup.exe is already closed. In addition, the CA on installation creates two files, which are deleted on the CA for uninstall. both install and uninstall CA's are running prior to the copy files section of the msi. or the remove files section. no files are left in the folder after installation, and all sub folders are erased as well. the error i'm getting in the log file is 2911, which means that for some reason the folder is locked. i've also tried to add to one of the components the <CreateFolder/> Directive, followed by the RemoveFolder on "both" statement. this did not help as well. i would appreciate any assitance with this bizzare behavior. thanks. -- View this message in context: http://www.nabble.com/Uninstall-keeps-install-folder-and-does-nor-remove-it.-tf2534728.html#a7061537 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users