Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Inno setup Inno设置-仅使用Internet Explorer打开链接_Inno Setup - Fatal编程技术网

Inno setup Inno设置-仅使用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

我用这些代码打开一个htm文件,但问题是我需要该文件只能用Internet Explorer打开

我怎样才能做到这一点? 谢谢大家!

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版本的代码。你能给我一个提示吗?谢谢!