Skip to content

Commit

Permalink
Merge branch 'gniezen/electron' into krystophv/electron
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophv committed May 16, 2017
2 parents 5f5d4d0 + 45456bd commit c2d439b
Show file tree
Hide file tree
Showing 3 changed files with 265 additions and 49 deletions.
14 changes: 7 additions & 7 deletions resources/installer.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
RequestExecutionLevel admin

!macro customInit
ReadINIStr $2 "$TEMP\count.ini" "UserCount" "Value"
IfFileExists "$TEMP\count.ini" "+3" ""
StrCpy $1 "0"

ReadINIStr $9 "$TEMP\TidepoolUploader.ini" "InstallCount" "Value"
IfFileExists "$TEMP\TidepoolUploader.ini" "+3" ""
StrCpy $8 "1"
goto +3
IntOp $1 $2 + 1
StrCpy $R0 "You have ran this setup program $2 times so far!\n\n"
IntOp $8 $9 + 1
StrCpy $R7 "You have ran this setup program $9 times so far!\n\n"

!macroend

Expand Down Expand Up @@ -41,6 +41,6 @@ RequestExecutionLevel admin
ExecWait "$DriverDir\TidepoolUSBDriver_x86.exe"
${EndIf}

WriteINIStr "$TEMP\count.ini" "UserCount" "Value" "$1"
WriteINIStr "$TEMP\TidepoolUploader.ini" "InstallCount" "Value" "$8"

!macroend
Loading

0 comments on commit c2d439b

Please sign in to comment.