Have you tried using the built in WIX action of WixCA? You can set a property 
with the command you wish to run and then schedule it later. From the WIX Help.

Quiet Execution Custom Action

"The QtExec custom action allows you to run an arbitrary command line in an 
MSI-based setup in silent mode. QtExec is commonly used to suppress console 
windows that would otherwise appear appear when invoking the executable 
directly. The custom action is located in the WixCA library, which is a part of 
the WixUtilExtension."

I'm also not sure if you want to remove the folders or just the files within it 
and allow the installer to remove the folder. I would imagine as long as the 
folder is empty the installer shouldn't have any issues removing the folder as 
long as you schedule your action prior to the folder removal.

Jon W. McCain | Software Engineer - Install
phone & fax +1.317.715.8462 | jon.mcc...@inin.com

Interactive Intelligence Inc.
Deliberately Innovative
www.inin.com
[Description: Description: Description: Description: 
cid:image001.png@01CC50F6.539B5F10]<http://www.inin.com/facebook>[Description: 
Description: Description: Description: 
cid:image003.png@01CC50F6.539B5F10]<http://www.inin.com/twitter>[Description: 
Description: Description: Description: 
cid:image005.png@01CC50F7.5FF508A0]<http://www.inin.com/linkedin>[Description: 
Description: Description: Description: 
cid:image004.png@01CC5106.F5DCBE80]<http://www.inin.com/youtube>[Description: 
Description: Description: Description: 
cid:image010.png@01CC5106.53AC34B0]<http://www.inin.com/Pages/Blogs.aspx>

From: himanshu saxena [mailto:hsan...@gmail.com]
Sent: Monday, January 23, 2012 6:30 AM
To: wix-devs@lists.sourceforge.net
Subject: [WiX-devs] Remove folders recursively during uninstall in WIX

Hi,

I want to execute a dos command from WIX, The command goes like: 
[SystemFolder]cmd.exe /c rmdir /s /q [INSTALLDIR]

Basically I want to delete the Installation Directory from the command prompt 
during Uninstall.

(These files not installed by MSI, they are created by my application when user 
runs it.)

I want to use the SystemFolder property to specify the cmd.exe path.

And the most important one is that, I dont want the command window to appear 
during Uninstallation.
I cannot use RemoveFile as I dont know the names of the files that the user 
creates.

Also I dont know the number of levels of folders & Files created.

Regards
Himanshu

<<inline: image001.png>>

<<inline: image002.png>>

<<inline: image003.png>>

<<inline: image004.png>>

<<inline: image005.png>>

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to