不确定为什么下面的代码不能在NSIS中工作。
我希望显示中止重试,忽略按钮与此,如果响应是重试,重新进入循环。如果中止,则转到标签中止。ELse继续。
lbl_InvertorRunningCheck:
FindProcDLL::FindProc "Invertor.exe"
${if} $R0 == 1
MessageBox MB_TOPMOST|MB_ICONEXCLAMATION|MB_ABORTRETRYIGNORE "Invertor process is running" IDRETRY lbl_InvertorRunningCheckIDABORT lbl_Abort ;
lbl_Abort:
Abort
${EndIf}发布于 2013-07-16 22:56:47
不确定您的错误是什么,但是您在lbl_InvertorRunningCheck和IDABORT之间缺少一个空格。
如果选择了Ignore,它将转到Abort命令,因为您没有指定如果按下Ignore应该发生什么。
试试这个:
lbl_InvertorRunningCheck:
FindProcDLL::FindProc "Invertor.exe"
${if} $R0 == 1
MessageBox MB_TOPMOST|MB_ICONEXCLAMATION|MB_ABORTRETRYIGNORE "Invertor process is running" IDRETRY lbl_InvertorRunningCheck IDABORT lbl_Abort IDIGNORE lbl_Ignore
lbl_Abort:
Abort
${EndIf}
lbl_Ignore:https://stackoverflow.com/questions/17624797
复制相似问题