qgroundcontrol_installer.nsi 922 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
Name "QGroundcontrol"

InstallDir $PROGRAMFILES\qgroundcontrol

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

12
LicenseData license.txt
13 14 15 16

Section ""

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

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

Section "create Start Menu Shortcuts"
pixhawk's avatar
pixhawk committed
30 31 32
  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
33
SectionEnd