为MSI创建静默安装程序

为MSI创建静默安装程序

本文介绍了为MSI创建静默安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已经创建并且具有 msi 安装程序的程序制作无提示安装程序(或无人值守)的最佳方法是什么?

What is the best way to make a silent installer (or unattended) for a program that was already created and has a msi installer?

在工作中,我被告知要创建一个自动化的安装程序,该安装程序会自动与用户进行所有交互,因此用户实际上只需单击一个按钮,它就会运行已开发程序的msi安装程序.另外,我还必须使其替换目录中的几个文件.

At work I'm told to create an installer that is automated and does all the interaction with the user automatically so that the user essentially just hits one button and it runs through the msi installer of the program that was already developed. Also I have to make it replace a couple files in the directory.

  1. 是否可以使安装程序自动化另一个安装程序?

  1. Is it possible to make a installer automate another installer?

可以在Visual Studio或NSIS中使用WIX吗?

Can it be done using WIX in visual studios or NSIS?

我是否需要能够将已经开发的安装程序拉入Visual Studios?如果可以,怎么办?

Do I need to be able to pull the already developed installer into Visual Studios? If so how?

奖金-我希望能够设计UI,以便可以在上面放置公司徽标.

Bonus- I would like to be able to design the UI so I can place the company logo on it.

我是该领域的初学者,可以从演练或教程中学到最好的知识.

I'm a beginner in this field and learn best from walkthrough's or tutorials.

推荐答案

1)是-您正在寻找引导程序. Burn.exe随WiX一起提供,更多信息此处

1) Yes - a bootstrapper is what you are looking for. Burn.exe comes with WiX, more information here

2)是,使用WiX我对NSIS一无所知.

2) Yes to using WiX I know nothing about NSIS.

3)如果您什么都不需要更改MSI,则可以使用WiX创建可安装现有MSI的引导程序.

3) If you have nothing you need to change in the MSI then you could just use WiX to create the bootstrapper that would install your existing MSI.

奖金)WiX使您可以完全编辑安装对话框,包括徽标,许可证等.更多信息此处.

Bonus) WiX lets you fully edit the install dialogs including logos, licenses, etc. More information here.

其他想法:静默安装是MSI的一部分;您可以通过执行

Extra thoughts: silent installation is part of MSI; your current installer can be installed silently by executing

msiexec /i <your msi> /quiet

在命令提示符下,命令提示符可能需要管理员权限.

in a command prompt, the command prompt may need admin privileges.

如果您需要对现有的msi进行更改,请再次使用Dark.exe,它是WiX的一个组件,它将把您现有的MSI文件分解为.wxs文件.这篇帖子也可能证明了向WiX转移的信息.

If you need to make changes to the existing msi look at using Dark.exe again a component of WiX that will decompose your existing MSI file into .wxs files. This post may also prove informative on moving to WiX.

这篇关于为MSI创建静默安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 19:00