[英]Adding dependency to NSIS installer
I have created an NSIS installer.Just wanted to know how to add dependency Eg the installer should not run on windows Xp etc 我已经创建了一个NSIS安装程序。只是想知道如何添加依赖项,例如,该安装程序不应在Windows Xp上运行。
Thanks 谢谢
Have a look at this: 看看这个:
!include WinVer.nsh
!include LogicLib.nsh
Function .onInit
${If} ${IsWinXP} ; or use ${AtMostWinXP} instead
MessageBox MB_OK "Does not work on XP"
Quit
${Else}
MessageBox MB_OK "Looking good, sir!"
${EndIf}
FunctionEnd
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.