문제

I have created an NSIS installer.Just wanted to know how to add dependency Eg the installer should not run on windows Xp etc

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 ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top