Yes Dave, that is correct as far as I have
experienced. Only the files that match the wildcard within that
directory will be
deleted. I currently have the problem trying to remove child directories and
their contents that are created by the runtime of the installed application.

<Directory Id="DirGSNetImages" LongName="GSNetImages" Name="GSNetImg">
 <Component Id="ComGSNetImages" Guid="09FE6DF0-xxx" DiskId="1">
   <CreateFolder />
   <RemoveFile Id="GSNetTempGif" Name="*.gif" On="uninstall"/>
   <RemoveFile Id="GSNetTempPng" Name="*.png" On="uninstall"/>
   <RemoveFile Id="GSNetTempJs" Name="*.js" On="uninstall"/>
   *<**RemoveFolder Id="GuidFolders" On="uninstall"/>*
 </Component>
</Directory>

This is a Temp Image directory which a third party report generator uses
creating a folder with a Guid name and bunch on images in each. At the
moment all the matching files in the directory are removed but the
subdirectories and all their contents is still there. Is there a way to
remove everything in a directory, sub folders and all contents?

Cheers,

-Matthew Rowan

On 2/27/07, dave_c <[EMAIL PROTECTED]> wrote:


Thanks Bob,

I've changed my code to

    <DirectoryRef Id='intface'>
      <Directory Id='logs' Name='logs'>
        <Component Id="logs" Guid="{6FA20250-4987-4196-8CEF-4EFFB7DB4683}"

          SharedDllRefCount="no" KeyPath="no" NeverOverwrite="no"
Permanent="no" Transitive="no"
          Win64="no" Location="either">
          <RemoveFile Id="Files" On="uninstall" Name="*.log"></RemoveFile>
          <CreateFolder/>
        </Component>
      </Directory>
    </DirectoryRef>

One quick question.

The specification of RemoveFile, due to it's positioning within the
Component structure does this just remove file it find within the logs
directory?

I.E. In the example above any file with an extension of .log will be
deleted
from the logs folder and the logs folder only.

Bob Arnson-3 wrote:
>
> dave_c wrote:
>> Is there an easy way in Wix to delete this folder and the files
contained
>> in
>> it and if there is an example I'd appreciate it.
>>
>
> Take a look at RemoveFile and RemoveFolder.
>
> --
> sig://boB
> http://bobs.org
>
>
>
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>

--
View this message in context: 
http://www.nabble.com/Forced-remove-of-folder-and-files-within-tf3292755.html#a9163350

Sent from the wix-users mailing list archive at Nabble.com<http://nabble.com/>
.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to