Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
30579165
Commit
30579165
authored
Jun 28, 2017
by
Don Gagne
Committed by
GitHub
Jun 28, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5356 from NaterGator/win10drivercheck
Support Win 7/10 for #3210
parents
6edd9f6e
8b9bc0fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
qgroundcontrol_installer.nsi
deploy/qgroundcontrol_installer.nsi
+9
-16
No files found.
deploy/qgroundcontrol_installer.nsi
View file @
30579165
...
@@ -77,24 +77,16 @@ doinstall:
...
@@ -77,24 +77,16 @@ doinstall:
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\QGroundControl" "UninstallString" "$\"$INSTDIR\QGroundControl_uninstall.exe$\""
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\QGroundControl" "UninstallString" "$\"$INSTDIR\QGroundControl_uninstall.exe$\""
; 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 "SYSTEM\CurrentControlSet\Control\Class\{4D36E978-E325-11CE-BFC1-08002BE10318}"
!define ROOTKEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\434608CF2B6E31F0DDBA5C511053F957B55F098E"
StrCpy $0 0
loop:
SetRegView 64
EnumRegKey $1 HKLM ${ROOTKEY} $0
ReadRegStr $0 HKLM "${ROOTKEY}" "Publisher"
StrCmp $1 "" notfound cont1
StrCmp $0 "3D Robotics" found_provider notfound
cont1:
StrCpy $2 "${ROOTKEY}\$1"
ReadRegStr $3 HKLM $2 "ProviderName"
StrCmp $3 "3D Robotics" found_provider
mismatch:
IntOp $0 $0 + 1
goto loop
found_provider:
found_provider:
ReadRegStr $
3 HKLM $2 "Driver
Version"
ReadRegStr $
0 HKLM "${ROOTKEY}" "Display
Version"
StrCmp $3 "2.0.0.4" skip_driver
DetailPrint "Checking USB driver version... $0"
goto mismatch
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"
...
@@ -104,6 +96,7 @@ notfound:
...
@@ -104,6 +96,7 @@ notfound:
skip_driver:
skip_driver:
DetailPrint "USB Driver found... skipping install"
DetailPrint "USB Driver found... skipping install"
done:
done:
SetRegView lastused
SectionEnd
SectionEnd
Section "Uninstall"
Section "Uninstall"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment