Skip to content

Commit

Permalink
Fix installer: check ImagePath without extension
Browse files Browse the repository at this point in the history
  • Loading branch information
binarymaster committed Jul 17, 2015
1 parent 8ac3396 commit 80387dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src-installer/RDPWInst.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ begin
end;
TermServiceHost := Reg.ReadString('ImagePath');
Reg.CloseKey;
if Pos('svchost.exe', LowerCase(TermServiceHost)) = 0 then
if (Pos('svchost.exe', LowerCase(TermServiceHost)) = 0)
and (Pos('svchost -k', LowerCase(TermServiceHost)) = 0) then
begin
Reg.Free;
Writeln('[-] TermService is hosted in a custom application (BeTwin, etc.) - unsupported.');
Expand Down Expand Up @@ -896,7 +897,7 @@ var
begin
Writeln('RDP Wrapper Library v1.5');
Writeln('Installer v2.2');
Writeln('Copyright (C) Stas''M Corp. 2014');
Writeln('Copyright (C) Stas''M Corp. 2015');
Writeln('');

if (ParamCount < 1)
Expand Down

0 comments on commit 80387dc

Please sign in to comment.