Title: Message
The ExeCommand attribute is only for the command line parameters.  If the batch file is installed with your product, then you can reference the batch file with the FileKey attribute.
 
To uninstall a damaged msi, try the Windows Installer Cleanup Utility.
http://support.microsoft.com/default.aspx?scid=kb;en-us;290301
 
-Brian Simoneau
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hecker, Thomas
Sent: Friday, July 07, 2006 4:33 AM
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] Running .bat file during uninstall

 Hi,
 
I need to run a .bat file that is installed with my product to undo some changes before the files are removed.
 
I tried the following code:
 
 <CustomAction Id="UninstallScript" Execute="commit" Directory='fw_bin' ExeCommand='services.bat uninstall' Return="check" />
 
 <InstallExecuteSequence>
  <Custom Action='' Before='RemoveFiles'>Installed</Custom>
 </InstallExecuteSequence>
 
But this results in a message "problem with installer package. A program required for this install to complete could not be run...".
The file is located in directory with ID "fw_bin". Is there a way to simply specify the complete path to execute?
 
What is the right way for doing this?
Thanks!
 
PS: Btw, how it's possibl to uninstall my "damaged" test-msi now? It does a rollback...
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to