installer.nsi 820 B

12345678910111213141516171819202122232425262728293031323334
  1. Outfile "netdata-installer.exe"
  2. InstallDir "C:\netdata"
  3. RequestExecutionLevel admin
  4. Section
  5. SetOutPath $INSTDIR
  6. WriteUninstaller $INSTDIR\uninstaller.exe
  7. SectionEnd
  8. Section "Install MSYS2 environment"
  9. SetOutPath $TEMP
  10. SetCompress off
  11. File "C:\msys64\msys2-installer.exe"
  12. nsExec::ExecToLog 'cmd.exe /C "$TEMP\msys2-installer.exe" in --confirm-command --accept-messages --root $INSTDIR'
  13. Delete "$TEMP\msys2-installer.exe"
  14. SectionEnd
  15. Section "Install MSYS2 packages"
  16. ExecWait '"$INSTDIR\usr\bin\bash.exe" -lc "pacman -S --noconfirm msys/libuv msys/protobuf"'
  17. SectionEnd
  18. Section "Install Netdata"
  19. SetOutPath $INSTDIR\opt\netdata
  20. SetCompress off
  21. File /r "C:\msys64\opt\netdata\*.*"
  22. SectionEnd
  23. Section "Uninstall"
  24. nsExec::ExecToLog 'cmd.exe /C "$INSTDIR\uninstall.exe" pr --confirm-command'
  25. SectionEnd