Inno setup Inno设置-仅使用Internet Explorer打开链接
我用这些代码打开一个htm文件,但问题是我需要该文件只能用Internet Explorer打开 我怎样才能做到这一点? 谢谢大家!Inno setup Inno设置-仅使用Internet Explorer打开链接,inno-setup,Inno Setup,我用这些代码打开一个htm文件,但问题是我需要该文件只能用Internet Explorer打开 我怎样才能做到这一点? 谢谢大家! procedure CurStepChanged(CurStep: TSetupStep); var ErrCode: integer; begin if (CurStep=ssPostInstall) then begin ShellExec('open',ExpandConstant('{userdesktop}\Tut
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;
我用这行代码的RUN部分来解决这个问题:
[Run]
Filename: iexplore.exe; Parameters: "{userdesktop}\Tutoriais\index.htm"; Verb: open; Flags: shellexec runasoriginaluser
谢谢大家! 难道不能直接打开IE,并将htm文件作为开始参数吗?执行
iexplore
并作为参数传递HTML文件。@TLama这不是我的评论所说的吗?;)@亚当,是的,我只是更具体一点…:-)伙计们,我找不到任何地方可以在代码部分执行iexplore并将文件作为参数传递。只是一些关于如何检测IE版本的代码。你能给我一个提示吗?谢谢!