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
FOLLOW US
Get the latest news in Application Packaging