具有现代外观和感觉的 WIX 安装程序 [英] WIX Installer with modern look and feel

查看:27
本文介绍了具有现代外观和感觉的 WIX 安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在为我的软件创建安装程序.我决定使用 WIX,因为我在 stackoverflow 上读到,虽然它有一个陡峭的学习曲线,但它是创建 .msi 安装程序的最通用的工具.

我正在尝试创建一个非常简单的单屏安装程序,到目前为止我对结果很满意,但有些控件看起来确实过时了.

凹陷的文本编辑与 Windows 10 的外观和感觉并不真正匹配.不过,更让我烦恼的是文件浏览对话框.

我知道我可以更改徽标,但图标和所有内容看起来就像来自 Windows 98.由于 WIX 似乎是创建 Windows 安装程序的广泛采用的选项,我认为必须有解决方案在那里创建更现代的外观和感觉,但我找不到任何东西.

我必须忍受过时的外观吗?如果是这样,您是否有更好的替代方法来创建 Windows 安装程序(不需要 .msi)?

解决方案

自定义 GUI:也许我可以在 Phil 的回答中添加 WiX 安装程序 本身使用这样一个自定义刻录 GUI.您显然已经拥有 WiX 安装程序,但这里是 WiX 3 安装程序的链接,供其他读者使用.

Burn:澄清一下:BurnWiX 的一部分- 它是一个 bootstrapper/sequencer/downloader 工具,旨在帮助您运行多个 MSI 文件或 setup.exe 二进制文件.因此,它还允许您安装先决条件.它允许外部 GUI 的事实只是其主要功能的另一个方面:以正确的顺序安装您需要的所有设置和组件.

MsiSetExternalUI:记录:Windows Installer 本身允许使用外部 GUI 的基础功能是以下功能:MsiSetExternalUI?我认为 Installshield - 用于创建 Windows 设置的领先商业工具之一 - 提供了一些还有更现代的 GUI 功能 - 使用这种外部 GUI 方法,但我没有完整的概述.

一些 Burn 示例:github.com 上提供了许多示例,用于说明如何使用 WiX 制作 Burn 包.这是 Burn 可以做什么的第一个很好的示例:https://github.com/frederiksen/Classic-WiX-Burn-Theme.这展示了如何制作具有更现代感"的简单 Burn GUI.

还有许多其他可用资源.这里有一些我会推荐的:

Burn 有一个可用的标准 GUI - 它比普通的 MSI GUI 更现代.但是您也可以自己实现整个 GUI - 正如 Phil 在他的回答中所说的那样.以下是有关该主题的几个链接:

MSI GUI:实际的 MSI 文件本身也可以有自定义的 GUI.这是关于自定义 MSI GUI 的旧答案.>

需要明确的是:Burn Setup.exe 有一个 GUI,包含的实际 MSI 文件可以嵌入自己的 GUI.MSI 文件中的嵌入式 GUI 可以通过 Burn(也可以通过 msiexec.exe 安装命令)来抑制.


一些链接:

I am currently creating an installer for my software. I decided to use WIX for it, because I read on stackoverflow that while it has a steep learning curve, it is the most versatile tool to create .msi installers.

I'm trying to create a very simple one screen installer, and I'm happy with the results so far, but some of the controls just look really outdated.

The sunken text edit doesn't really match the look and feel of Windows 10. What bothers me more is the file browsing dialog, though.

I know that I can change the logo, but the icons and everything just look like they're coming from Windows 98. Since WIX seems to be a widely adopted option for creating Windows installers, I thought there must be a solution out there to create a more modern look and feel, but I wasn't able to find anything.

Do I have to live with the outdated look? If so, do you have a better alternative for creating Windows installers (.msi not required)?

解决方案

Custom GUI: Maybe I can add to Phil's answer that the WiX installer itself uses such a custom Burn GUI. You obviously have the WiX installer already, but here is a link to the WiX 3 installert for other readers.

Burn: Just to clarify: Burn is part of WiX - it is a bootstrapper / sequencer / downloader tool designed to help you run several MSI files or setup.exe binaries in sequence. Hence it allows you to also install prerequisites. The fact that it allows an external GUI is just another aspect of its primary function: to install all the setups and components you need - in the right order.

MsiSetExternalUI: For the record: the underlying feature in Windows Installer itself that allows an external GUI to be used is the function: MsiSetExternalUI? I think Installshield - one of the leading commercial tools for creating Windows setups - provides some more modern GUI features as well - using this external GUI approach, but I don't have a full overview.

Some Burn samples: There are many samples available on github.com for how to make Burn bundles with WiX. Here is a nice, first sample of what Burn can do: https://github.com/frederiksen/Classic-WiX-Burn-Theme. This shows how you can make a simple Burn GUI that has a more "modern feel".

There are many other resources available. Here are a few I would recommend:

Burn has a standard GUI available - which is more modern than the normal MSI GUI. But you can also implement the whole GUI yourself - as Phil states in his answer. Here are a couple of links on the subject:

MSI GUI: The actual MSI files themselves can also have a customized GUI. Here is an old answer on customized MSI GUI.

To be clear: the Burn Setup.exe has one GUI and the actual MSI files included can have their own GUI embedded. The embedded GUI in MSI files can be suppressed via Burn (also by msiexec.exe install commands).


Some Links:

这篇关于具有现代外观和感觉的 WIX 安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆