View Single Post
  #1140  
Old 27-05-2022, 23:27
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Insert something like this in CurStepChanged.
Quote:
Originally Posted by abror View Post
do you know how to open the application/website after the installation is complete and the user has clicked Finish without the checkbox
Code:
procedure CurStepChanged(CurStep: TSetupStep);
var
  ResultCode: Integer;
begin
  if CurStep = ssDone then
  begin
    ShellExec('open', 'https://www.fileforums.com', '', '', SW_SHOWNORMAL, ewNoWait, ResultCode);
    ShellExec('open', ExpandConstant('{app}\game.exe'), '', '', SW_SHOWNORMAL, ewNoWait, ResultCode);
  end;
end;
Reply With Quote
The Following 2 Users Say Thank You to Cesar82 For This Useful Post:
abror (28-05-2022), Gehrman (04-07-2022)