Andre Garcia
Andre Garcia

Reputation: 914

Inno Setup - open link only with Internet Explorer

Im using these code to open a htm file but the problem is that i need that file to be open only with Internet Explorer.

How can i achieve that? Thank you!

procedure CurStepChanged(CurStep: TSetupStep);
var
    ErrCode: integer;
begin
    if (CurStep=ssPostInstall) then
    begin
        ShellExec('open',ExpandConstant('{userdesktop}\Tutoriais\index.htm'), '', '', SW_SHOW, ewNoWait, ErrCode);        
    end;

    end;

Upvotes: 1

Views: 586

Answers (1)

Andre Garcia
Andre Garcia

Reputation: 914

I used the RUN section with this line of code to solve this question:

[Run]
Filename: iexplore.exe; Parameters: "{userdesktop}\Tutoriais\index.htm"; Verb: open; Flags: shellexec runasoriginaluser

Thank you !

Upvotes: 1

Related Questions