qgroundcontrol_installer.nsi 882 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
Don Gagne's avatar
Don Gagne committed
23 24
  RMDir /r /REBOOTOK $INSTDIR
  RMDir /r /REBOOTOK "$SMPROGRAMS\QGroundControl\"
25 26 27
SectionEnd

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