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.


-------------------------------------------------------------------------
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