This should work :-) As far as I know, only empty folders are removed by the installer and CreateFolder won't fail if the folder exists already. You may also add Permanent=yes to the Component to ignore the component during uninstallation.
From msi help: << The folders in this table are created when the component is installed. An attempt is made to remove these folders only when the component is uninstalled or moved to run-from-source. No automatic removal is triggered if the folders become empty. In contrast, folders created by the installer but not listed in this table are removed when they become empty. Because folders created by the installer are deleted when they become empty, you must author an entry into the CreateFolder table to install a component that consists of an empty folder. >> Best regards, Sebastian Brand Instyler Software - http://www.instyler.com On Jan 30, 2008, at 7:39 , Ravikumar Gopinath wrote: > Can I use the CreateFolder element even if the directory already > exists? Will it remove the directory on uninstall? > > Date: Tue, 29 Jan 2008 22:25:08 -0800 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > CC: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] Setting security permissions for a > directory... > > Ravikumar Gopinath wrote:How can I set the security permissions for > a directory? The util:PermissionEx element can be a child of File, > CreateFolder or Registry elements. How can I set it to the directory > itself? > > Add CreateFolder as a child of Directory and PermissionEx as a child > of CreateFolder. > -- > sig://boB > http://joyofsetup.com/ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users