Unverified Commit 0fd4d7b0 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8299 from DonLakeFlyer/Drivers

Windows: Driver update
parents 9505896d 513ab1ed
The driver.msi file is pulled from https://firmware.ardupilot.org/Tools/MissionPlanner/driver.msi
\ No newline at end of file
No preview for this file type
......@@ -98,7 +98,7 @@ doInstall:
; QGC stores its own driver version key to prevent installation if already up to date
; This prevents running the driver install a second time which will start up in repair mode which is confusing
!define QGCDRIVERVERSIONKEY "SOFTWARE\QGroundControlUAVDrivers"
!define QGCCURRENTDRIVERVERSION 1
!define QGCCURRENTDRIVERVERSION 2
; If the drivers are already installed the key "HKCU/SOFTWARE\MichaelOborne\driver\installed" will be present and set to 1
SetRegView 64
......@@ -109,7 +109,7 @@ doInstall:
driversInstalled:
DetailPrint "UAV Drivers already installed. Checking version..."
; Check if the installed drivers are out of date.
; Latest version is tagged as 1. Missing key also indicates out of date driver install.
; Missing key also indicates out of date driver install.
ReadRegDWORD $0 HKCU "${QGCDRIVERVERSIONKEY}" "version"
IntCmp $0 ${QGCCURRENTDRIVERVERSION} done driversOutOfDate done
......@@ -126,7 +126,7 @@ installDrivers:
DetailPrint "Installing UAV Drivers..."
ExecWait '"msiexec" /i "driver.msi"'
; Set current driver version value
WriteRegDWORD HKCU "${QGCDRIVERVERSIONKEY}" "version" 1
WriteRegDWORD HKCU "${QGCDRIVERVERSIONKEY}" "version" ${QGCCURRENTDRIVERVERSION}
goto done
done:
......
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