学习如何从 WiX 创建 MSI 安装程序的好资源

我已经放弃了尝试应用口红到猪的安装程序出来的 视觉工作室,并已决定看看 维克斯

你会推荐哪些资源来学习和参考?

(注意——这不是一个关于你使用哪种安装程序技术的问题——这是 WiX 特有的问题。)

45080 次浏览

From first glance From MSI to WiX seems fairly comprehensive.

I have to add wix-users@lists.wixtoolset.org. That's where everyone hangs out and asks/answers questions as they come up. Just lurking on that mailing list will provide lots of real-time education on the WiX toolset.

Even though it's not only related towards WiX, the book from Apress:

The Definitive guide to Windows Installer By Phil Wilson link

It helped me to understand the installation processes. It's a good book to have when writing installers.

If you understand German, then read the articles in the Entwickler Magazin, edition: 2008-05, 2008-06 and 2009-01.

A follow-up will be published in 2009-02, with more developing stuff (MSI API).

One of the best ways I found to learn WiX was to take an existing MSI that did something I wanted to do, and used the Dark decompiler to generate a WiX script from it, and then I read that.

Here's a shameless plug to the book I've recently published through Packt:

WiX: A Developer's Guide to Windows Installer XML

It covers a lot of what you'd need to know to get going using WiX 3.0.

Apart from the links provided by people above, also have a look at the approach I use to explain this to people :

Wix Commands for creating msi from wix :

I've written a tutorial that shows you how to create a WIX installer for a console application here, if you wanted a practical example.

Chiming in with another shameless plug; I recently wrote an article where I somewhat desperately try to explain some of the concepts of WiX in a more easily-understood way than the others. No offence.

http://www.optimalbpm.se/wiki/index.php/WiX

It is meant to be read before reading any tutorials, because it specifically tries to address some of the things people always seem to misunderstand as a result of well, reading those tutorials. And especially the documentation. At least I did.

Also, there is another article, a little bit more advanced, that has an angle to those distributing script(like Python etc)-based systems, and why one in not only those, but all cases should use Paraffin rather than Heat.

http://www.optimalbpm.se/wiki/index.php/Wix_and_scripting_languages

You may use link as a reference https://www.firegiant.com/wix/tutorial/ It won't help a beginner as it didn't provide any practical examples.

For a beginner, if you have a pluralsight subscription, there is a course which will teach you the basics.

'WIX-Cookbook' https://www.packtpub.com/web-development/wix-cookbook by Nick-Ramirez (Covers Wix-3.8). This is the book if anyone looking to get the job done quickly.

If you want to gain in-depth knowledge on how and why everything works, you probably better of going through Wix-3.6 A Developers Guide by the same author. https://www.packtpub.com/application-development/wix-developers-guide-windows-installer-xml

To create an installer for websites, refer following series by Bart De Meyer http://blog.bartdemeyer.be/2013/10/create-an-installer-for-website-with-wix-part-1/ This article will show you how to use Wix tools like Candle and Light.