Skip to content

Commit

Permalink
Merge pull request #902 from tidepool-org/hotfix-2.17.2
Browse files Browse the repository at this point in the history
Hotfix 2.17.2 (UPLOAD-113)
  • Loading branch information
gniezen authored Jul 15, 2019
2 parents 84b8353 + d82341e commit a93b7c9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tidepool-uploader",
"productName": "tidepool-uploader",
"version": "2.17.1",
"version": "2.17.2",
"description": "Tidepool Project Universal Uploader",
"main": "./main.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tidepool-uploader",
"version": "2.17.1",
"version": "2.17.2",
"description": "Tidepool Project Universal Uploader",
"private": true,
"main": "main.js",
Expand Down
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 a93b7c9

Please sign in to comment.