0
当我运行卸载程序时,我想检查应用程序是否正在运行。我使用FindProcDLL插件。x64应用程序卸载时遇到问题
Function un.onInit
FindProcDLL::FindProc "${PRODUCT_NAME}.exe"
IntCmp $R0 1 0 notRunning
MessageBox MB_OK|MB_ICONEXCLAMATION "${PRODUCT_NAME} is running. Please close it first" /SD IDOK
Quit
notRunning:
FunctionEnd
该脚本的工作,如果应用程序是建立在x86平台,但dont't工作,如果应用程序是建立x64平台。