Here is the area of interest in the source:

static HRESULT PromptToContinue(
    __in_z LPCWSTR wzApplication,
    __in_z LPCWSTR wzPrompt
    )
{
...
do
    {
        hr = ProcFindAllIdsFromExeName(wzApplication, &prgProcessIds,
&cProcessIds);
        if (SUCCEEDED(hr) && 0 < cProcessIds)
        {
            er =
WcaProcessMessage(static_cast<INSTALLMESSAGE>(INSTALLMESSAGE_WARNING |
MB_ABORTRETRYIGNORE | MB_DEFBUTTON3 | MB_ICONWARNING), hRecMessage);
            if (IDABORT == er)
            {
                hr = HRESULT_FROM_WIN32(ERROR_INSTALL_USEREXIT);
            }
            else if (IDRETRY == er)
            {
                hr = S_FALSE;
            }
            else if (IDIGNORE == er)
            {
                hr = S_OK;
            }
            else
            {
                ExitOnWin32Error(er, hr, "Unexpected return value from
prompt to continue.");
            }
        }

        ReleaseNullMem(prgProcessIds);
        cProcessIds = 0;
    } while (S_FALSE == hr);
...
}



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Editing-the-CloseApplication-Dialog-tp7595889p7595892.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to