锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
灝唒rocesswork.dll鏀懼埌Plugins鐩綍涓嬶紝鐒跺悗鍦∟SIS浠g爜涓姞鍏ュ涓嬪嚱鏁幫細(xì)
Function CloseParentWithUserApproval
Push $5
loop:
push "*.exe"
processwork::existsprocess
pop $5
IntCmp $5 0 done
MessageBox MB_RETRYCANCEL|MB_ICONSTOP “Your process must be closed during this installation.$\r$\n Close your process now, or press Retry to automatically close and continue or press Cancel to cancel the installation entirely.“ IDCANCEL BailOut
push "*.exe"
processwork::KillProcess
Sleep 2000
Goto loop
BailOut:
Abort
done:
Pop $5
FunctionEnd
]]>
CDialog* pModeDlg = new CDialog(NULL);
pModeDlg ->Create(IDD_DIALOG_MODE, GetDesktopWindow());
pModeDlg ->ShowWindow(SW_SHOWNA);
]]>