所以我有以下代码,只要它被调用,它就会出现在其他所有内容的后面。有谁知道我如何确保这个提示每次都出现在前面?
sPromptA = "Question that is asked to user";
MODE = NORMALMODE;
if (NO = AskYesNo(sPromptA, NO)) then
MODE = SILENTMODE;
所以我有以下代码,只要它被调用,它就会出现在其他所有内容的后面。有谁知道我如何确保这个提示每次都出现在前面?
sPromptA = "Question that is asked to user";
MODE = NORMALMODE;
if (NO = AskYesNo(sPromptA, NO)) then
MODE = SILENTMODE;
您可以解决此问题:
HWND hRecord;
sMsg = "my message";
hRecord = MsiCreateRecord(1);
MsiRecordSetString( hRecord, 0, sMsg);
nYesNoResult = MsiProcessMessage(hMSI, INSTALLMESSAGE_USER + MB_YESNO, hRecord);
MsiCloseHandle(hRecord);
if (nYesNoResult = 6) then //6=yes 7=no
//do something
endif;