大网数据广告活动
安装更新与部署

A URL-Based Windows Installer Installation Example

· 52CE 我爱测

This example illustrates how to create a URL-based installation of a Windows Installer package.

This example illustrates how to create a URL-based installation of a Windows Installer package. For more information about securing installations and using digital certificates see Guidelines for Authoring Secure Installations and Digital Signatures and Windows Installer.

To reproduce this sample you need the SignTool utility. For details, see the CryptoAPI Tools Reference in the Microsoft Windows Software Development Kit (SDK). You also need Msistuff.exe and Setup.exe utilities from the Windows SDK Components for Windows Installer Developers. For more information, see Internet Download Bootstrapping.

The example has the following specifications:

  • When users visit your website and click the "MySetup Installation" link, they are presented with the option to save or run from that location. If the user selects to run from that location, the Setup.exe upgrades the version of Windows Installer on their computer, if necessary, verifies the digital signature on the installer package, and installs the package on their computer.

  • There is a digital certificate, Mycert.cer, provided with a private key, Mycert.pvk.

  • The URL of the hypothetical website a customer would visit to install the package is https://www.blueyonderairlines.com/Products/MySetup/mysetup.html.

  • The web server layout is as follows.

    URL File Description
    https://www.blueyonderairlines.com/Products/MySetup/ Setup.exe Setup.exe bootstrapper.
    https://www.blueyonderairlines.com/Products/MySetup/ MySetup.msi Installation package
    https://www.blueyonderairlines.com/Products/MySetup/ Cab1.cab Source file cabinet #1
    https://www.blueyonderairlines.com/Products/MySetup/ Cab2.cab Source file cabinet #2
    https://www.blueyonderairlines.com/Products/Common/InstMsi/Ansi Instmsi.exe ANSI Windows Installer 2.0 redistributable.
    https://www.blueyonderairlines.com/Products/Common/InstMsi/Unicode Instmsi.exe Unicode Windows Installer 2.0 redistributable.

Continue

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。