Joe, that smells like your MSI can't find either SQLCMD or your SQL script. I'll bet it's the SQL script; it's either already removed before your call to SQLCMD or you need to provide the full path to it.
-----Original Message----- From: Joe Osman [mailto:joe.os...@tait.co.nz] Sent: Sunday, February 01, 2009 19:09 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] How to run sqlcmd on uninstall I am trying to run a sqlcmd on uninstall without success. Here is what I am doing: <InstallExecuteSequence> <Custom Action="UninstallTasks" After="InstallFiles">REMOVE ~= "ALL" AND (NOT OLDERVERSIONBEINGUPGRADED)</Custom> </InstallExecuteSequence> <Binary Id="RemoveDBSQL" SourceFile="deleteUsers.sql"/> <CustomAction Id="UninstallTasks" Return="ignore" BinaryKey="RemoveDBSQL" ExeCommand="sqlcmd.exe -s localhost -E -i deleteUsers.sql" Execute="deferred" /> This is the error message I get in the verbose log on uninstall: Info 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: UninstallTasks, location: C:\Windows\Installer\MSI2D02.tmp, command: sqlcmd.exe -s localhost -E -i deleteUsers.sql Thank for your help ======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. ======================================================================= ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users