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

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to