Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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. |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today