Skip to content

Commit

Permalink
Create uninstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalintiris committed May 16, 2024
1 parent ba1c7bc commit b1a7118
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packaging/utils/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ InstallDir "C:\netdata"

RequestExecutionLevel admin

Section
SetOutPath $INSTDIR
WriteUninstaller $INSTDIR\uninstaller.exe
SectionEnd

Section "Install MSYS2 environment"
SetOutPath $TEMP

Expand All @@ -23,3 +28,7 @@ Section "Install Netdata"
SetCompress off
File /r "C:\msys64\opt\netdata\*.*"
SectionEnd

Section "Uninstall"
nsExec::ExecToLog 'cmd.exe /C "$INSTDIR\uninstall.exe" pr --confirm-command'
SectionEnd

0 comments on commit b1a7118

Please sign in to comment.