View Single Post
  #3  
Old 18-09-2014, 10:22
Dante1995 Dante1995 is offline
Banned
 
Join Date: Feb 2014
Location: Black Hole
Posts: 297
Thanks: 116
Thanked 481 Times in 162 Posts
Dante1995 is on a distinguished road
Open Browser After Installation

Code:
[Setup]
AppName=OpenWeb
AppVersion=OpenWeb
DefaultDirName=OpenWeb_Dante1995
OutputDir=.


[Run]
//---> Open Browser After Installation + Check Confirm
//Filename: "http://YourWebSite.it/"; Flags: shellexec runasoriginaluser postinstall; Description:Open WebSite.

//---> Open Browser After Installation (does not close the Set-up)
//Filename: "http://google.com/"; Flags: shellexec runasoriginaluser

[Code_]
//---> Open Browser After Installation
procedure CurStepChanged(CurStep: TSetupStep);
var
    ErrCode: integer;
begin
    if (CurStep=ssDone) then
    begin
        ShellExec('open', 'http://google.it/', '', '', SW_SHOW, ewNoWait, ErrCode);
    end;
end;
Reply With Quote
The Following 2 Users Say Thank You to Dante1995 For This Useful Post:
Razor12911 (22-09-2014), Simorq (27-02-2015)