从Inno Setup安装后的“运行”部分条目中打开HTML页面

时间:2019-06-02 21:36:11

标签: inno-setup

是否可以将这些[run]条目转换为Internet超链接?

Filename: "{win}\hh.exe"; \
Parameters: "{app}\CommunityTalks.chm::/CommunityTalks.htm"; \
WorkingDir: "{app}"; \
Flags: nowait postinstall runmaximized; \
Description: "{cm:ShowOverview}"

Filename: "{win}\hh.exe"; \
Parameters: "{app}\CommunityTalks.chm::/revisions.htm"; \
WorkingDir: "{app}"; \
Flags: nowait postinstall runmaximized; \
Description: "{cm:ViewChangeHistory}"

我已经设法为相同的两项更新脚本的[icons]部分:

Name: "{group}\Public Talks Help"; \
Filename: "https://help-pts.publictalksoftware.co.uk/pts-overview.html"

Name: "{group}\Revision History"; \
Filename: "https://help-pts.publictalksoftware.co.uk/pts-revision-history.html"

但是我无法确定[run]对应对象的外观。


更新

所以我尝试了:

// AJT v19.0.0 Display the Overview help topic (now uses online link)
Filename: "https://help-pts.publictalksoftware.co.uk/pts-overview.html"; \
    Flags: nowait postinstall runmaximized; \
    Description: "{cm:ShowOverview}"

// AJT v19.0.0 Display the Revision History help topic (now uses online link)
Filename: "https://help-pts.publictalksoftware.co.uk/pts-revision-history.html"; \
    Flags: nowait postinstall runmaximized; \
    Description: "{cm:ViewChangeHistory}"

在安装过程中遇到错误:

HTML Error

1 个答案:

答案 0 :(得分:1)

要打开链接,您需要使用shellexec flag

Filename: "https://www.example.com/"; \
    Flags: shellexec postinstall runmaximized; \
    Description: "Show Overview"

对于shellexecnowait是隐式的,因此我将其删除。

runmaximized可能影响不大,因为该链接通常会在现有浏览器窗口的新标签页中打开。