Commit 8f55cd78 authored by Don Gagne's avatar Don Gagne

parent 22ce6517
...@@ -8,7 +8,8 @@ Note: This file only contains high level features or important fixes. ...@@ -8,7 +8,8 @@ Note: This file only contains high level features or important fixes.
* Major rewrite and bug fix pass through Structure Scan. Previous version had such bad problems that it can no longer be supported. Plans with Structure Scan will need to be recreated. New QGC will not load old Structure Scan plans. * Major rewrite and bug fix pass through Structure Scan. Previous version had such bad problems that it can no longer be supported. Plans with Structure Scan will need to be recreated. New QGC will not load old Structure Scan plans.
### 3.5.3 - Not yet released ### 3.5.3 - Stable
* Change Windows driver detection logic
* Fix crash when clicking on GeoFence polygon vertex * Fix crash when clicking on GeoFence polygon vertex
* PX4: Fix missing ```MC_YAW_FF``` parameter in PID Tuning * PX4: Fix missing ```MC_YAW_FF``` parameter in PID Tuning
* ArduPilot: Fix parameter file save generating bad characters from git hash * ArduPilot: Fix parameter file save generating bad characters from git hash
......
...@@ -62,6 +62,7 @@ Section ...@@ -62,6 +62,7 @@ Section
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString" ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString"
StrCmp $R0 "" doinstall StrCmp $R0 "" doinstall
DetailPrint "Uninstalling previous version..."
ExecWait "$R0 /S _?=$INSTDIR -LEAVE_DATA=1" ExecWait "$R0 /S _?=$INSTDIR -LEAVE_DATA=1"
IntCmp $0 0 doinstall IntCmp $0 0 doinstall
...@@ -82,24 +83,21 @@ doinstall: ...@@ -82,24 +83,21 @@ doinstall:
WriteRegExpandStr HKLM "SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\${EXENAME}.exe" "DumpFolder" "%LOCALAPPDATA%\QGCCrashDumps" WriteRegExpandStr HKLM "SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\${EXENAME}.exe" "DumpFolder" "%LOCALAPPDATA%\QGCCrashDumps"
; Only attempt to install the PX4 driver if the version isn't present ; Only attempt to install the PX4 driver if the version isn't present
!define ROOTKEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\434608CF2B6E31F0DDBA5C511053F957B55F098E" !define DRIVERKEY "SOFTWARE\MichaelOborne\driver"
SetRegView 64 SetRegView 64
ReadRegStr $0 HKLM "${ROOTKEY}" "Publisher" ReadRegDWORD $0 HKCU "${DRIVERKEY}" "installed"
StrCmp $0 "3D Robotics" found_provider notfound IntCmp $0 1 found_provider notfound notfound
found_provider: found_provider:
ReadRegStr $0 HKLM "${ROOTKEY}" "DisplayVersion" DetailPrint "USB Drivers already installed"
DetailPrint "Checking USB driver version... $0" goto done
StrCmp $0 "04/11/2013 2.0.0.4" skip_driver notfound
notfound: notfound:
DetailPrint "USB Driver not found... installing" DetailPrint "USB Driver not found... installing"
ExecWait '"msiexec" /i "px4driver.msi"' ExecWait '"msiexec" /i "px4driver.msi"'
goto done goto done
skip_driver:
DetailPrint "USB Driver found... skipping install"
done: done:
SetRegView lastused SetRegView lastused
SectionEnd SectionEnd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment