简体   繁体   English

如何创建MSI软件包,它可以自己安装Windows安装程序

[英]How to create MSI package, which can install Windows installer itself

Is it possible to create MSI package, which will run without Windows installer installed in system, but first will install Windows installer itself, and then continue installing other components? 是否可以创建MSI程序包,该程序包将在系统中未安装Windows安装程序的情况下运行,但首先将安装Windows安装程序本身,然后继续安装其他组件?

The goal is to create prerequisite package for our software, which must install some components, including some operation system service packs. 目的是为我们的软件创建必备软件包,该软件包必须安装某些组件,包括某些操作系统Service Pack。 We also prefer using MSI package. 我们也更喜欢使用MSI软件包。 But it's obviously to us that our software will be installed on clean operation system. 但是显然对我们来说,我们的软件将安装在干净的操作系统上。 Though there will not be needed Windows installer present. 虽然不需要Windows安装程序。 Is it possible to create such prerequisite package using MSI? 是否可以使用MSI创建此类必备软件包?

No, there is no way to install an .MSI package without Windows Installer already being present in the OS. 不可以,如果操作系统中没有Windows Installer,就无法安装.MSI软件包。

However, Windows Installer has been a native part of Windows since Windows 2000. Are you really developing installers for Windows 95/98/NT4? 但是,Windows Installer自Windows 2000以来一直是Windows的本机部分。您是否真的在为Windows 95/98 / NT4开发安装程序? That would be the only case where there is no Windows Installer support and you'd need to install a redistributable MSI package first. 那是唯一不支持Windows Installer的情况,您需要先安装可重新分发的MSI软件包。

Unless you meant to say that you require a higher version of Windows Installer than is native to one of the older OSes? 除非您要说的是,您需要的Windows Installer版本比一个旧OS所固有的版本高? (eg MSI 3.1 for WinXP) In that case, you'll need to bundle the .MSI redistributable for the MSI package you desire and run that first. (例如,用于WinXP的MSI 3.1)在这种情况下,您需要将可再发行的.MSI捆绑到所需的MSI软件包中,然后首先运行。 Sometimes a reboot is required, other times not. 有时需要重新启动,而其他时候则不需要。 YMMV. YMMV。

一种方式是,您可以使用cpp或c或不需要任何其他框架或SDK的任何语言编写应用程序,以检查安装程序并以编程方式进行安装。

It sounds like you need a bootstrapped with two or more msi files in it. 听起来您需要在其中包含两个或多个msi文件的引导程序。 Take look at the WiX documentation. 看一下WiX文档。 WiX has build-in bootstrapped WiX具有内置引导程序

Hope this helps 希望这可以帮助

s s

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在没有 MSI 安装程序的情况下在 Windows 上安装 python? - How to install python on Windows without an MSI installer? 单个.msi Windows软件包安装程序文件的最大大小是多少? - What is the largest size that a single .msi windows package installer file can be? 如何从MSI包安装Windows Update - How to install a Windows Update from an MSI package msi 安装程序完成后的应用程序以 SYSTEM 用户名启动,有时无法创建 com 对象 - Application process after msi installer finished is started as SYSTEM user name which sometimes can not create com object Windows Installer msi软件包:在DefaultDir列中输入的句点(。) - windows installer msi package: a period (.) entered in the DefaultDir column 如何使用 OS X 创建 MSI 安装程序? - How to create an MSI installer using OS X? 将msi安装程序打包并发布到Windows 10 App Store中[仅限DESKTOP]? - Package and Publish msi installer into Windows 10 App Store [DESKTOP ONLY]? 无需GUI或msi安装程序即可手动创建msix包 - Create msix package manually without GUI or msi installer 如何创建msi并从中安装? - How to create msi and install from it? Windows Installer MSI能否使用户完全信任 - Can Windows installer msi make the user full trust
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM