Skip to content

Commit f16223d

Browse files
authored
Merge pull request #4 from sashaqwert/MOD
Fix RDPWinst.exe -w in first time
2 parents 98ffa24 + 8673ae5 commit f16223d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src-installer/RDPWInst.dpr

+1-5
Original file line numberDiff line numberDiff line change
@@ -1106,11 +1106,7 @@ begin
11061106

11071107
Writeln('[*] Terminating service...');
11081108
AddPrivilege('SeDebugPrivilege');
1109-
//KillProcess(TermServicePID);
1110-
WinExec('cmd /c net stop UmRdpService /y', 1); //fix for Hyper-V VMs
1111-
Sleep(1000);
1112-
WinExec('cmd /c net stop termService /y', 1);
1113-
Sleep(1000);
1109+
ExecWait('cmd /c net stop termService /y');
11141110

11151111
if Length(ShareSvc) > 0 then
11161112
for I := 0 to Length(ShareSvc) - 1 do

0 commit comments

Comments
 (0)