View Single Post
  #13  
Old 21-08-2022, 04:07
Lord.Freddy's Avatar
Lord.Freddy Lord.Freddy is offline
Registered User
 
Join Date: Apr 2022
Location: ...
Posts: 54
Thanks: 222
Thanked 41 Times in 25 Posts
Lord.Freddy is on a distinguished road
Quote:
Originally Posted by Gehrman View Post
Thanks Lord Freddy
But it doesn't work.
Code:
if IsComponentSelected('Patch') then 
var
  ResultCode: Integer;
begin
  // Launch EXE file and wait for it to terminate
  Exec(ExpandConstant('{tmp}\Patch.exe'), ExpandConstant('/Dir={app}'), '', SW_SHOW,ewWaitUntilTerminated, ResultCode);
end;
I think this is work for you now

Last edited by Lord.Freddy; 21-08-2022 at 04:11.
Reply With Quote
The Following User Says Thank You to Lord.Freddy For This Useful Post:
Gehrman (23-08-2022)