View Single Post
  #3  
Old 04-05-2016, 20:34
Carldric Clement's Avatar
Carldric Clement Carldric Clement is offline
Registered User
 
Join Date: Aug 2014
Location: Toboh, Sabah, Malaysia
Posts: 595
Thanks: 599
Thanked 656 Times in 233 Posts
Carldric Clement is on a distinguished road
Quote:
Originally Posted by inatha3 View Post
how open website after installer success ? im using Blackbox Inno Setup Script
edit main script with code :

procedure CurStepChanged(CurStep: TSetupStep);
var
ErrCode: integer;
begin
if (CurStep=ssDone) then
begin
ShellExec('open', 'http://your.app.url/', '', '', SW_SHOW, ewNoWait, ErrCode);
end;
end;

succes open URL after install but my game not instaled .

thanks
Use this...
Code:
procedure CurStepChanged(CurStep: TSetupStep);
var
    URL: integer;
begin
    if (CurStep=ssPostInstall) and not (ISDoneError) then
    begin
        ShellExec('open', 'http://your.app.url/', '', '', SW_SHOW, ewNoWait, URL);
    end;
end;
Reply With Quote
The Following User Says Thank You to Carldric Clement For This Useful Post:
inatha3 (05-05-2016)