Commit 513ab1ed authored by DonLakeFlyer's avatar DonLakeFlyer

parent 0aafacfe
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: ...@@ -98,7 +98,7 @@ doInstall:
; QGC stores its own driver version key to prevent installation if already up to date ; 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 ; This prevents running the driver install a second time which will start up in repair mode which is confusing
!define QGCDRIVERVERSIONKEY "SOFTWARE\QGroundControlUAVDrivers" !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 ; If the drivers are already installed the key "HKCU/SOFTWARE\MichaelOborne\driver\installed" will be present and set to 1
SetRegView 64 SetRegView 64
...@@ -109,7 +109,7 @@ doInstall: ...@@ -109,7 +109,7 @@ doInstall:
driversInstalled: driversInstalled:
DetailPrint "UAV Drivers already installed. Checking version..." DetailPrint "UAV Drivers already installed. Checking version..."
; Check if the installed drivers are out of date. ; 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" ReadRegDWORD $0 HKCU "${QGCDRIVERVERSIONKEY}" "version"
IntCmp $0 ${QGCCURRENTDRIVERVERSION} done driversOutOfDate done IntCmp $0 ${QGCCURRENTDRIVERVERSION} done driversOutOfDate done
...@@ -126,7 +126,7 @@ installDrivers: ...@@ -126,7 +126,7 @@ installDrivers:
DetailPrint "Installing UAV Drivers..." DetailPrint "Installing UAV Drivers..."
ExecWait '"msiexec" /i "driver.msi"' ExecWait '"msiexec" /i "driver.msi"'
; Set current driver version value ; Set current driver version value
WriteRegDWORD HKCU "${QGCDRIVERVERSIONKEY}" "version" 1 WriteRegDWORD HKCU "${QGCDRIVERVERSIONKEY}" "version" ${QGCCURRENTDRIVERVERSION}
goto done goto done
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