Web 安装构建器软件

发布于 2024-12-02 23:03:07 字数 206 浏览 0 评论 0原文

Web 安装程序每天都变得越来越流行 - 您只需下载一小部分安装,它就会从网络服务器中提取剩余的文件。

但尽管如此受欢迎,我找不到任何本身支持网络安装的安装程序。

我已经使用 Inno Setup 好几年了 - 但下载支持非常基本,你必须手动完成所有操作。 NSIS 在从网络下载和安装文件方面也相当有限。

是否有支持全功能 Web 安装的安装程序?

Web installers are getting more popular every day - you download just a small bit of installation and it pulls the remaining files from webserver.

But with all popularity, I couldn't find any installer that natively supports web install.

I'm using Inno Setup for several years now - but download support is very basic, you have to do everything manually. NSIS is also quite limited when it comes to downloading and installing files form the web.

Is there any installer that supports full-featured web installations?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

初熏 2024-12-09 23:03:08

Windows Installer 支持 Web 安装:

  • 使用程序包 URL 而不是文件路径启动 msiexec.exe
  • 安装开始时会下载 MSI(仅 MSI)
  • 的位置下载所需的 CAB

Windows Installer 仅从与 MSI相同 有一些优化:

  • 为每个功能生成一个 CAB,而不是为整个安装程序生成一个 CAB
  • 将 CAB 留在 MSI 之外
  • 将 MSI 和 CAB 放在服务器上的同一文件夹中

此外,您始终可以添加 EXE引导程序还可以处理包先决条件。

大多数商业设置创作工具都直接支持这一点。一些免费工具也支持此功能,但大多数情况下您需要手动配置。

Windows Installer supports web installations:

  • you launch msiexec.exe with the package URL instead of a file path
  • the MSI is downloaded (only the MSI)
  • when installation starts Windows Installer downloads only the CABs it needs from the same location as your MSI

For this there are some optimizations:

  • generate a CAB for each feature instead of a single CAB for the entire installer
  • leave the CABs outside your MSI
  • place the MSI and CABs in the same folder on your server

Additionally, you can always add an EXE bootstrapper to also handle package prerequisites.

Most commercial setup authoring tools have direct support for this. Some free tools also support this, but for most you need to configure it manually.

做个ˇ局外人 2024-12-09 23:03:08

可以使用 inetc 插件 使用 NSIS 创建网络安装程序

!define URL  "http://url to full installer.exe"

outfile netinstall.exe
name "Net Install"
setcompressor zlib

!include "mui2.nsh"
!include "logiclib.nsh"

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_LANGUAGE "English"

LangString TEXT_DOWNLOAD_FAILED ${LANG_ENGLISH} "Unable to download installer.$\r$\n$\r$\nPlease check you Internet connection and retry."

section NetInstall
download:
    inetc::get "${URL}" $PLUGINSDIR\installer.exe
    pop $0

    ${if} $0 == "Cancelled"
        quit
    ${elseif} $0 != "OK"
        messagebox MB_RETRYCANCEL|MB_ICONEXCLAMATION "$(TEXT_DOWNLOAD_FAILED)" IDRETRY download
        quit
    ${endif}

    hidewindow    

    execwait '"$PLUGINSDIR\installer.exe"'    
sectionend

It's possible to create a net installer with NSIS using the inetc plugin

!define URL  "http://url to full installer.exe"

outfile netinstall.exe
name "Net Install"
setcompressor zlib

!include "mui2.nsh"
!include "logiclib.nsh"

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_LANGUAGE "English"

LangString TEXT_DOWNLOAD_FAILED ${LANG_ENGLISH} "Unable to download installer.$\r$\n$\r$\nPlease check you Internet connection and retry."

section NetInstall
download:
    inetc::get "${URL}" $PLUGINSDIR\installer.exe
    pop $0

    ${if} $0 == "Cancelled"
        quit
    ${elseif} $0 != "OK"
        messagebox MB_RETRYCANCEL|MB_ICONEXCLAMATION "$(TEXT_DOWNLOAD_FAILED)" IDRETRY download
        quit
    ${endif}

    hidewindow    

    execwait '"$PLUGINSDIR\installer.exe"'    
sectionend
じее 2024-12-09 23:03:08

InstallShield 对网络安装有广泛的支持。

InstallShield has extensive support for web installations.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文