how_fun
Posts: 5
Joined: Tue Jun 03, 2008 8:53 pm

Custom Action Return Code

Custom Action Return Code

Hi,

I want to create a wcf dialog, check if there is a old version install. if so, popup a dialog, ask user to uninstall the old version, but they still can install new version side by side. There are three button, Uninstall uninstall the old version, Ignore (Ignore old version, install side by side)and abort (abort install, and exit). I create a custom action, which request [b}Synchronous execution, check return code[/b]. Everything seems OK, but it does not work, no matter i click either Ignore or abort, It will keep going with installation. The c++ code is here:

INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
return ERROR_SUCCESS;
}

return ERROR_INSTALL_USEREXIT;


Can anyone knows why it happen? thanks,

regards

Hong
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Custom Action Return Code

Hi,

Please try using the integer values instead of the status codes. For example:

Code: Select all

INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
return 0;
}

return 1602;
If the problem persists even when using the integer values send us the AIP you are using to support at advancedinstaller dot com so we can investigate it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”