I should have specified that I was assuming that there was no way to know what the additional files were named or where they were located - which would be logical for logging directories.
I was told (I think by you) that to do that, it required a CA to tell Windows Installer what additional files to delete. If the file names are known, of course, then RemoveFile tags should be added as appropriate. --Curtis On Mon, 08 Jun 2009 10:33 -0700, "Rob Mensching" <r...@wixtoolset.org> wrote: > Why do you need a CustomAction? RemoveFiles is a standard action and > will handle rollback for you. > > Curtis Jewell wrote: > > 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] > > -- 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] ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users