!define PACKAGE_NAME "RCS-Hotfix" !define INSTALLER_PREFIX "rcs-hotfix" !define OUT_WITH_VERSION_NUMBER true !include "common.nsh" ; Installer pages !insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_INSTFILES ; Uninstaller pages !insertmacro MUI_UNPAGE_WELCOME !insertmacro MUI_UNPAGE_INSTFILES ; Language !insertmacro MUI_LANGUAGE "English" ; Installer Sections Section "Install Section" SecInstall SetDetailsPrint "both" DetailPrint "Stopping RCS..." SimpleSC::StopService "RCSDB" 30 30 DetailPrint "Extracting Hotfix files..." SetDetailsPrint "textonly" ; Hotfix files here... !cd '..' SetOutPath "$INSTDIR\DB\config" File "config\VERSION" ;File "config\VERSION_BUILD" SetOutPath "$INSTDIR\DB\lib\rcs-db-release\build" File "lib\rcs-db-release\build\windows.rb" SetOutPath "$INSTDIR\DB\lib\rcs-db-release" File "lib\rcs-db-release\build.rb" File "lib\rcs-db-release\blacklist.rb" SetOutPath "$INSTDIR\DB\cores" File "cores\windows.zip" SetDetailsPrint "both" DetailPrint "done" DetailPrint "Restarting RCS. Please wait..." SimpleSC::StartService "RCSDB" "" 30 Sleep 18000 !cd "nsis" SectionEnd Function .onInit !insertmacro CheckInstalled !insertmacro CheckVersion !insertmacro CheckMasterNode !insertmacro CheckOS FunctionEnd .