Skip to content
⌘ NSIS Forum Archive

Service pack questions.

3 posts

IYIaster#

Service pack questions.

I downloaded the service pack plug and I'm using this script
GetVersion::WindowsServicePack   Pop $R0   DetailPrint "Window Service Pack:"   DetailPrint "  $R0"
and it works great. What I would like to do is put a if command in there where if Service Pack 1 is the response then it will not continue with the install and display a warning. Thanks for the help!
Animaether#

!include "logiclib.nsh" ; this goes near the top of your script, outside functions/sections
${If} $0 == 1
MessageBox MB_OK "Installation is not supported for Windows Service Pack $0"
Quit
${EndIf}