I am installing a .cmd file and I run it during the installation using a Custom Action. When I run the uninstall I get the following error message: "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"
I suspect that the installer is trying to execute this file after it has been removed but I couldn't find a way to solve it. Below is the code. Thank s for your help. <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="{E8E89B9D-D37A-46b3-A6EE-DFEFDDFCF89B}" Name="ProductInstall" Language="1033" Version="1.0.0.0" Manufacturer="T1" UpgradeCode="8bf3db65-ec81-4456-ac12-7740ee1a1c61"> <Package InstallerVersion="200" Compressed="yes" /> <Media Id="1" Cabinet="ProdInstall.cab" EmbedCab="yes" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLLOCATION" Name="ProdInstall"> <Directory Id="SetUP" Name="Setup"> <Component Id="CreateDataBaseCmd" DiskId="1" Guid="{0771B8C9-36E4-4d04-9757-3B61296D0EAD}"> <File Id="CreateDataBase" Source="CreateDataBase.cmd" /> </Component> </Directory> </Directory> </Directory> </Directory> <Feature Id="ProductFeature" Title="DemoProdInstall" Level="1"> <ComponentRef Id="CreateDataBaseCmd" /> </Feature> <CustomAction Id="DoSomething" FileKey="CreateDataBase" ExeCommand="-switch" Execute="deferred" Return="check" HideTarget="no" Impersonate="no" /> <InstallExecuteSequence> <Custom Action="DoSomething" Before="InstallFinalize" /> </InstallExecuteSequence> </Product> </Wix> ======================================================================= 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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users