If the folder has files in it the MSI didn't put there, it won't get deleted unless you have a custom action delete the files first (or tell Windows Installer to do so)
If you want source for such a custom action, try http://svn.ali.as/cpan/trunk/Perl-Dist-WiX/src/ClearFolderCA/ClearFolderCA/ClearFolderCA.cpp If not, I'm puzzled. --Curtis On Mon, 08 Jun 2009 13:53 +0530, "Natarajan, Thangaraj (MLITS)" <thangaraj_natara...@ml.com> wrote: > > > Hi All, > > I have some issue in Removing the Folder during uninstallation. Please > Find the Wix script below. > > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="INSTALLDIR" Name="BACS_ID_Reservation_Interface"> > <Component Id="COMP1" > Guid="AC12D5D4-7AF0-4919-BDD7-3708C8C129E5"> > <File Id="f3" Name="Import_BACS_Reservation_New.dtsx" > DiskId="1" Source="Import_BACS_Reservation_New.dtsx" /> > </Component> > <Component Id="GRES1" > Guid="A8D20EDF-5423-4C46-9B14-E1B0E6020FB1"> > <File Id="f1" Name="DTSRUN_BACS_ID_Reservation_LoadData.bat" > DiskId="1" Source="DTSRUN_BACS_ID_Reservation_LoadData.bat" /> > <File Id="f2" Name="Import_BACS_Reservation_New.dtsConfig" > DiskId="1" Source="Import_BACS_Reservation_New.dtsConfig" /> > </Component> > </Directory> > <Directory Id="MLVARIDRESERVATIONDATAFILEPATH" > Name="DataFilePath"> > <Component Id="DataFolder" > Guid="CD61421E-970C-4317-AC67-85225DA0FEC0"> > <CreateFolder Directory="MLVARIDRESERVATIONDATAFILEPATH" /> > <RemoveFolder Id="DeleteDataFileFolder" > Directory="MLVARIDRESERVATIONDATAFILEPATH" On="uninstall" /> > </Component> > </Directory> > <Directory Id="MLVARIDRESERVATIONLOGFILEPATH" Name="LogFilePath"> > <Component Id="LogsFolder" > Guid="4BBE30A7-43D0-45ae-A1C0-F2FE28A6BCE8"> > <CreateFolder Directory="MLVARIDRESERVATIONLOGFILEPATH" /> > <RemoveFolder Id="DeleteLogFileFolder" > Directory="MLVARIDRESERVATIONLOGFILEPATH" On="uninstall" /> > </Component> > </Directory> > </Directory> > > <Property Id="MLVARIDRESERVATIONDATAFILEPATH" Value="E:\ID > Reservation\SSIS Package\DataFile" /> > <Property Id="MLVARIDRESERVATIONLOGFILEPATH" Value="E:\ID > Reservation\SSIS Package\LogFile" /> > > > Actually it is creating the Folders on installation. But fails to remove > the Folder on unistallation. Please help me out in resolving this issue, > > Thanks > Thangaraj N > -- Curtis Jewell swords...@csjewell.fastmail.us %DCL-E-MEM-BAD, bad memory -VMS-F-PDGERS, pudding between the ears [I use PC-Alpine, which deliberately does not display colors and pictures in HTML mail] ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users