FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   how open website after installer success (https://fileforums.com/showthread.php?t=97883)

inatha3 04-05-2016 04:20

how open website after installer success
 
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

ShadowEagle 04-05-2016 12:45

Code:

[Run]
Filename: "URL"; Flags: shellexec runasoriginaluser postinstall; Description: "DESCRIPTION"


Carldric Clement 04-05-2016 20:34

Quote:

Originally Posted by inatha3 (Post 448820)
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;


inatha3 05-05-2016 03:40

Quote:

Originally Posted by Carldric Clement (Post 448829)
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;


i edit :

Code:

procedure CurStepChanged(CurStep: TSetupStep);
begin
  CurStepChanged1(CurStep);
end;

replace with :

Code:

procedure CurStepChanged(CurStep: TSetupStep);
var
    URL: integer;
begin
  if (CurStep = ssPostInstall) and ISDoneError then
  begin
    Exec2(ExpandConstant('{uninstallexe}'), '/VERYSILENT', false);
  end;
    if (CurStep=ssPostInstall) and not (ISDoneError) then
    begin
        ShellExec('open', 'http://your.app.url/', '', '', SW_SHOW, ewNoWait, URL);
    end;
end;

succes open url but my game not instaled my game no data

inatha3 05-05-2016 03:43

1 Attachment(s)
this my main.iss

Carldric Clement 05-05-2016 07:52

Quote:

Originally Posted by inatha3 (Post 448834)
this my main.iss

This file was fixed. You can use now.
Code:

Just change your URL from
#define AppURL "YourURL"


inatha3 05-05-2016 12:22

Quote:

Originally Posted by Carldric Clement (Post 448837)
This file was fixed. You can use now.
Code:

Just change your URL from
#define AppURL "YourURL"


finnaly
thank you bro . heheh

Nizar3003 08-05-2016 00:50

I use this...

[Run]
Filename: "http://facebook.com/"; Flags: shellexec runasoriginaluser


All times are GMT -7. The time now is 14:28.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com