Beginner’s guide to Windows Installer XML (WiX) 3.5
Summary: Slides and demo projects.
This is post #5 of the six-part Learning WiX series. For other topics, see:Table of contents
- Background (why WiX?)
- Introduction (answers to common questions)
- Getting started (references and tutorials)
- How-to's and missing links
- Slides and demo projects
- Improved demo projects (32- and 64-bit installers)
There are three demo solutions, each containing four projects, all implemented in Visual Studio 2010 (you also need WiX 3.5 Toolset/Votive):
- A client (Windows Forms) application.
- A server (Windows service) application.
- A class library (DLL used by both client and server).
- A WiX 3.5 setup project handling deployment of the client, server, and class library.
- Install and configure a Windows service.
- Install a client application.
- Install a class library in Global Assembly Cache (GAC).
- Install a text (readme.txt) file.
- Create shortcuts under the Start menu for the client app and text file.
- Create a shortcut under the Start menu for the application uninstaller.
- Display the advanced setup dialog sequence (wizards) allowing the user to select the installation scope (per user or per machine), specify product destination folder, chose which features to install (client, server, or both).
- Perform major upgrades (upgrades will retain Windows service definition for the already installed server component).
- Include application files in the setup package via project references (instead of hard coding the file names).
UPDATE: See new and improved samples, which explain how to implement installers for 32- and 64-bit targets and do other things.
I'd also like to recommend two books which I found extremely helpful: WiX: A Developer's Guide to Windows Installer XML by Nick Ramirez covers WiX; The Definitive Guide to Windows Installer (Expert's Voice in Net) by Phil Wilson - general Windows Installer (MSI) concept:See also:
My three-part introduction to WiX series
nice.Thank you.
ReplyDeleteWix 3.5 documentation is problem :(
I like the post but I can't get it work because I can't get rid of existing project configurations...
ReplyDeletethis build configuration part of Visual Studio is after many years still crap...
maybe you can help me to solve it?
Are you saying that the sample doesn't work/ or something else?
ReplyDelete