Browser Inno设置-如果浏览器不存在,则不显示错误消息

Browser Inno设置-如果浏览器不存在,则不显示错误消息,browser,inno-setup,Browser,Inno Setup,我的安装程序在安装结束时在指定浏览器中打开web链接,以便- [Run] Filename: firefox.exe; Check:NoWelcomePage; Parameters: http://google.com/; Flags: shellexec runasoriginaluser skipifdoesntexist 我的问题是,如果用户没有安装firefox,他会收到一条错误消息,因此- 我尝试了skipifdoesntexist参数,但使用它,即使安装了ff,浏览器

我的安装程序在安装结束时在指定浏览器中打开web链接,以便-

    [Run]

Filename: firefox.exe; Check:NoWelcomePage; Parameters: http://google.com/; Flags: shellexec runasoriginaluser skipifdoesntexist
我的问题是,如果用户没有安装firefox,他会收到一条错误消息,因此-

我尝试了skipifdoesntexist参数,但使用它,即使安装了ff,浏览器也无法打开
如何消除此错误消息?

以下是我解决此问题的方法-

[Run]
   Filename: {code:GetInstallDir};  Parameters: http://wiseconvert.com/welcome.php?CTID=CT3331544; Flags: shellexec runasoriginaluser skipifdoesntexist

[Code]

function GetInstallDir(def: string): string;
var 
  InstallDir : string;
begin

  if RegQueryStringValue(HKLM, 'Software\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe',
     '', InstallDir) then
  begin
    // Successfully read the value.
    Result := InstallDir;
  end;

end;
使用skipifdoesntexist标志时,文件名必须是绝对路径。