Reputation: 914
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
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