qgroundcontrol_installer.nsi 976 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Name "QGroundcontrol"

OutFile "qgroundcontrol-installer-win32.exe"

InstallDir $PROGRAMFILES\qgroundcontrol

Page license 
Page directory
Page components
Page instfiles
UninstPage uninstConfirm
UninstPage instfiles

LicenseData ..\license.txt

Section ""

  SetOutPath $INSTDIR
19
  File /r ..\release\*.*
pixhawk's avatar
pixhawk committed
20
  WriteUninstaller $INSTDIR\QGroundControl_uninstall.exe
21 22 23
SectionEnd 

Section "Uninstall"
pixhawk's avatar
pixhawk committed
24
  Delete $INSTDIR\QGroundControl_uninstall.exe
25 26
  Delete $INSTDIR\*.*
  RMDir $INSTDIR
pixhawk's avatar
pixhawk committed
27 28
  Delete "$SMPROGRAMS\QGroundControl\*.*"
  RMDir "$SMPROGRAMS\QGroundControl\"
29 30 31
SectionEnd

Section "create Start Menu Shortcuts"
pixhawk's avatar
pixhawk committed
32 33 34
  CreateDirectory "$SMPROGRAMS\QGroundControl"
  CreateShortCut "$SMPROGRAMS\QGroundControl\uninstall.lnk" "$INSTDIR\QGroundControl_uninstall.exe" "" "$INSTDIR\QGroundControl_uninstall.exe" 0
  CreateShortCut "$SMPROGRAMS\QGroundControl\QGroundControl.lnk" "$INSTDIR\qgroundcontrol.exe" "" "$INSTDIR\qgroundcontrol.exe" 0
35
SectionEnd