سؤال

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