<Directory Id="Logs" Name="Logs">
<Component Id="DeleteLogs" DiskId="1" Guid="PUT-GUID-HERE">
<RemoveFile Id="DeleteLogs" Name="*" On="both"/>
<RemoveFolder Id="DeleteLogsDir" On="both"/>
</Component>
</Directory>
Works for me. Remember to add the Component to a Feature & it should be
all good. Change the 'On="both"' to "install" or "uninstall" if that's
what you'd prefer.
Only problem is you can only delete files in directories which you know
the names of. So for example you could have another directory under logs
which you would declare the same as above inside that Directory Element.
This would delete all the files in that directory and the folder itself
too also as above but you need to be able to specify the folder, you
can't use "*" for the Directory attribute in a RemoveFile Element as
Windows Installer doesn't support wildcards in directory names. To do
that you'd need to resort to Custom Actions.
Good Luck.
Palbinder Sandher
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501
http://www.iesve.com
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer
-----Original Message-----
From: Eduard Zaverukha [mailto:[email protected]]
Sent: 07 October 2009 15:34
To: [email protected]
Subject: [WiX-users] Removing folders that don't exist at the compiling
time
Hello
How I can remove a folder "Logs" both all enclosed files and folders?
For a moment of compilation i don't know names of files and a folders
containing in a folder "Logs".
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users