InstallShield AskYesNo对话框出现在所有内容背后

时间:2013-09-17 13:31:17

标签: install installshield

所以我有以下代码,无论何时调用它都会出现在其他所有内容之后。有没有人知道我怎么能确保这个提示每次出现在前面?

sPromptA = "Question that is asked to user";

MODE = NORMALMODE;

if (NO = AskYesNo(sPromptA, NO)) then
    MODE = SILENTMODE;

1 个答案:

答案 0 :(得分:1)

你可以解决这个问题:

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;