Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
0ca0c832
Unverified
Commit
0ca0c832
authored
Dec 27, 2019
by
Don Gagne
Committed by
GitHub
Dec 27, 2019
Browse files
Merge pull request #8188 from DonLakeFlyer/64BitInstaller
Windows: 64 bit installer changes
parents
ecf6fd88
9cd9a269
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/qgroundcontrol_installer.nsi
View file @
0ca0c832
...
...
@@ -40,7 +40,7 @@
Name "${APPNAME}"
Var StartMenuFolder
InstallDir "$PROGRAMFILES\${APPNAME}"
InstallDir "$PROGRAMFILES
64
\${APPNAME}"
SetCompressor /SOLID /FINAL lzma
...
...
@@ -59,18 +59,28 @@ SetCompressor /SOLID /FINAL lzma
!insertmacro MUI_LANGUAGE "English"
Section
DetailPrint "Checking for 32 bit uninstaller"
SetRegView 32
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString"
StrCmp $R0 ""
do
install
StrCmp $R0 ""
check64BitUninstall doUn
install
check64BitUninstall:
DetailPrint "Checking for 64 bit uninstaller"
SetRegView 64
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString"
StrCmp $R0 "" doInstall
doUninstall:
DetailPrint "Uninstalling previous version..."
ExecWait "$R0 /S
_?=$INSTDIR
-LEAVE_DATA=1"
IntCmp $0 0 do
i
nstall
ExecWait "$R0 /S -LEAVE_DATA=1"
IntCmp $0 0 do
I
nstall
MessageBox MB_OK|MB_ICONEXCLAMATION \
"Could not remove a previously installed ${APPNAME} version.$\n$\nPlease remove it before continuing."
Abort
doinstall:
doInstall:
SetRegView 64
SetOutPath $INSTDIR
File /r /x ${EXENAME}.pdb /x ${EXENAME}.lib /x ${EXENAME}.exp ${DESTDIR}\*.*
...
...
@@ -81,7 +91,6 @@ doinstall:
WriteUninstaller $INSTDIR\${EXENAME}-Uninstall.exe
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "DisplayName" "${APPNAME}"
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString" "$\"$INSTDIR\${EXENAME}-Uninstall.exe$\""
SetRegView 64
WriteRegDWORD HKLM "SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\${EXENAME}.exe" "DumpCount" 5
WriteRegDWORD HKLM "SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\${EXENAME}.exe" "DumpType" 1
WriteRegExpandStr HKLM "SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\${EXENAME}.exe" "DumpFolder" "%LOCALAPPDATA%\QGCCrashDumps"
...
...
@@ -99,7 +108,6 @@ 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.
ReadRegDWORD $0 HKCU "${QGCDRIVERVERSIONKEY}" "version"
...
...
@@ -126,6 +134,7 @@ done:
SectionEnd
Section "Uninstall"
SetRegView 64
${GetParameters} $R0
${GetOptions} $R0 "-LEAVE_DATA=" $R1
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
...
...
@@ -142,6 +151,7 @@ Section "Uninstall"
SectionEnd
Section "create Start Menu Shortcuts"
SetRegView 64
SetShellVarContext all
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\${APPNAME}.lnk" "$INSTDIR\${EXENAME}.exe" "" "$INSTDIR\${EXENAME}.exe" 0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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