Fix installer: check ImagePath without extension
This commit is contained in:
parent
8ac3396165
commit
80387dcc31
|
@ -159,7 +159,8 @@ begin
|
||||||
end;
|
end;
|
||||||
TermServiceHost := Reg.ReadString('ImagePath');
|
TermServiceHost := Reg.ReadString('ImagePath');
|
||||||
Reg.CloseKey;
|
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
|
begin
|
||||||
Reg.Free;
|
Reg.Free;
|
||||||
Writeln('[-] TermService is hosted in a custom application (BeTwin, etc.) - unsupported.');
|
Writeln('[-] TermService is hosted in a custom application (BeTwin, etc.) - unsupported.');
|
||||||
|
@ -896,7 +897,7 @@ var
|
||||||
begin
|
begin
|
||||||
Writeln('RDP Wrapper Library v1.5');
|
Writeln('RDP Wrapper Library v1.5');
|
||||||
Writeln('Installer v2.2');
|
Writeln('Installer v2.2');
|
||||||
Writeln('Copyright (C) Stas''M Corp. 2014');
|
Writeln('Copyright (C) Stas''M Corp. 2015');
|
||||||
Writeln('');
|
Writeln('');
|
||||||
|
|
||||||
if (ParamCount < 1)
|
if (ParamCount < 1)
|
||||||
|
|
Loading…
Reference in New Issue