Skip to content

Commit

Permalink
Merge branch 'master' into release-2.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gniezen committed Jul 15, 2019
2 parents cf7c0e4 + a93b7c9 commit e008353
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions resources/installer.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ RequestExecutionLevel admin
!macro customInstall

Var /GLOBAL DriverDir
Var /GLOBAL Installer_x64
Var /GLOBAL Installer_x86

StrCpy $DriverDir "$INSTDIR\resources\driver"

; Add our certificate to the local store to prevent unnecessary pop-up
Expand All @@ -41,24 +44,32 @@ RequestExecutionLevel admin

${If} ${IsWin10}
; Windows 10 uses drivers with attestation signing
CopyFiles $DriverDir\win10\* $DriverDir
CopyFiles /SILENT $DriverDir\win10\* $DriverDir
${EndIf}


StrCpy $Installer_x64 "$DriverDir\TidepoolUSBDriver_x64.exe /q"
StrCpy $Installer_x86 "$DriverDir\TidepoolUSBDriver_x86.exe /q"

IfSilent +3 ; don't use quiet flag if not silent install
StrCpy $Installer_x64 "$DriverDir\TidepoolUSBDriver_x64.exe"
StrCpy $Installer_x86 "$DriverDir\TidepoolUSBDriver_x86.exe"

${If} ${RunningX64}
${If} ${IsWin7}
; 64-bit Windows 7
CopyFiles $DriverDir\win7x64\* $DriverDir\amd64
ExecWait "$DriverDir\TidepoolUSBDriver_x64.exe"
ExecWait $Installer_x64
${Else}
ExecWait "$DriverDir\TidepoolUSBDriver_x64.exe"
ExecWait $Installer_x64
${EndIf}
${Else}
${If} ${IsWin7}
; 32-bit Windows 7
CopyFiles $DriverDir\win7x86\* $DriverDir\i386
ExecWait "$DriverDir\TidepoolUSBDriver_x86.exe"
ExecWait $Installer_x86
${Else}
ExecWait "$DriverDir\TidepoolUSBDriver_x86.exe"
ExecWait $Installer_x86
${EndIf}
${EndIf}

Expand Down

0 comments on commit e008353

Please sign in to comment.