Skip to content

Commit 4bfb8db

Browse files
authored
Merge pull request #103 from PropGit/demo
Updated Windows installer script to run embedded Parallax USB Driver …
2 parents 2a18755 + ca1b148 commit 4bfb8db

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

package/blocklypropclient-installer.iss

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,16 @@ procedure RunDriverInstaller;
6161
var
6262
ResultCode: Integer;
6363
begin
64-
if not Exec(ExpandConstant('{app}\drivers\Install-Parallax-USB-Drivers-v2.12.16.exe'), '/UpperLeft /Immediate', '', SW_SHOWNORMAL,
65-
ewWaitUntilTerminated, ResultCode)
66-
then
67-
MsgBox('USB Driver Installer failed to run!' + #13#10 +
68-
SysErrorMessage(ResultCode), mbError, MB_OK);
64+
if not WizardSilent then
65+
begin
66+
if not Exec(ExpandConstant('{app}\drivers\Install-Parallax-USB-Drivers-v2.12.16.exe'), '/UpperLeft /Immediate', '', SW_SHOWNORMAL,
67+
ewWaitUntilTerminated, ResultCode)
68+
then
69+
MsgBox('USB Driver Installer failed to run!' + #13#10 +
70+
SysErrorMessage(ResultCode), mbError, MB_OK)
71+
end
72+
else
73+
Exec(ExpandConstant('{app}\drivers\Install-Parallax-USB-Drivers-v2.12.16.exe'), '/Quiet', '', SW_SHOWNORMAL,
74+
ewWaitUntilTerminated, ResultCode);
6975
end;
7076

0 commit comments

Comments
 (0)