Skip to content

Commit

Permalink
Fix #27
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Nov 17, 2020
1 parent 463a4f2 commit 9b92c0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smartmontools for Windows includes.iss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//// General purpose functions (2017051201)
//// General purpose functions (2020111701)

[code]
//// Returns true if IsWin64 is false
Expand Down Expand Up @@ -79,7 +79,7 @@ function IsSmartWinService(srv: String): Boolean;
var resultcode: Integer;
begin
ShellExec('', ExpandConstant('{cmd}'), ExpandConstant('/C {sys}\sc.exe qc ' + srv + ' | findstr "BINARY_PATH_NAME" | findstr /C:"\\smartmontools for Windows\\"'), '', SW_HIDE, ewWaitUntilTerminated, resultcode);
ShellExec('', ExpandConstant('{cmd}'), ExpandConstant('/C {sys}\sc.exe qc ' + srv + ' | findstr /C:"\\smartmontools for Windows\\bin\\smartd.exe"'), '', SW_HIDE, ewWaitUntilTerminated, resultcode);
if resultcode = 0 then
result := true
else
Expand Down

0 comments on commit 9b92c0c

Please sign in to comment.