Without seeing your code I can't be sure of this, but many custom
actions are woefully short of error checking. Calling APIs and not
checking the result is unfortunately common, so you need to check these
things. 

You can log errors into the MSI log with something like this in your
custom action: 

UINT LogMessage (MSIHANDLE hInstall, LPCTSTR msg)
{
        PMSIHANDLE rec = MsiCreateRecord (1); 
        MsiRecordSetString (rec, 0, msg); 
        MsiProcessMessage (hInstall,
INSTALLMESSAGE(INSTALLMESSAGE_INFO), rec); 
        return ERROR_SUCCESS;
}



Phil Wilson 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of SaiTeja
Sent: Tuesday, November 27, 2007 10:18 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Error 1721 - How to resolve


Yaa I understand.

Could you tell me how to resolve this????


Thanks


Rob Mensching-4 wrote:
> 
> Your custom action failed (i.e. returned non-zero).
> 
> SaiTeja wrote:
>> Hi,
>>
>> Below is my custom action
>>
>>     <CustomAction Id="LQ_UninstallComService" Return="check"
>> HideTarget="no"
>> Execute="deferred" Impersonate="yes" TerminalServerAware="no"
>> ExeCommand="UninstallComService" FileKey="qmireg.exe">
>>     </CustomAction>
>>
>>      <InstallExecuteSequence>
>>   <Custom Action="LQ_UninstallComService" Sequence="1700">Installed
And
>> REMOVE="ALL"</Custom>
>>    </InstallExecuteSequence>
>>
>>
>>
>> When am trying to uninstall am getting following error. Can any one
tell
>> me
>> what is the probelm???
>>
>> Error 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: LQ_UninstallComService,
>> location: C:\Program Files\LQ\manifests\qmireg.exe, command:
>> UninstallComService
>>
>>
>> Thanks
>>   
> 
> 
>
------------------------------------------------------------------------
-
> SF.Net email is sponsored by: The Future of Linux Business White Paper
> from Novell.  From the desktop to the data center, Linux is going
> mainstream.  Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context:
http://www.nabble.com/Error-1721---How-to-resolve-tf4859815.html#a139865
91
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to