Book description
Over 60 hands-on recipes packed with tips and tricks to boost your Windows installations
In Detail
WiX is a dialect of XML used to make installers for Windows. Its declarative style avoids the complexity and limitations of procedural code, providing you with everything you need to package up an entire application into a single MSI file.
This book gives you a good overview of WiX's capabilities to develop your own installer packages with functionalities beyond those available in Windows Installer. In the recipes of this book, you will see ways in which WiX can cut down on your installation time and help you streamline your deployment processes. You will see how to make customized installer UIs, write custom actions, create shortcuts, and also set your application as the default for a file type.
What You Will Learn
- Install websites, application pools, and virtual directories in IIS
- Add a wizard to your installer and customize it with your own dialogs
- Set up new user accounts, add security groups, and secure files and folders on installation
- Prevent deployment to unsupported systems by using launch conditions
- Update XML files during installation
- Configure shortcuts to your application
- Include prerequisites with a bootstrapper
- Create custom actions using C#
- Add environment variables to the system
Table of contents
-
WiX Cookbook
- Table of Contents
- WiX Cookbook
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. Organizing and Building WiX Projects
- Introduction
- Installing WiX and creating a new project in Visual Studio 2013
- Referencing the output of a .NET console application in a WiX project by using a preprocessor variable
- Separating a portion of WIX markup into its own library
- Compiling a WiX installer on a build machine using MSBuild
- Building a WiX installer from the command line
- 2. Installing Files and Directories
- 3. File and Folder Permissions
- 4. Shortcuts
- 5. Editing XML Files during Installation
-
6. Custom Actions
- Introduction
- Creating a C# custom action and referencing it in your project
- Passing information entered by a user to a deferred custom action
- Preventing custom action data from being displayed in the install log
- Running an executable as a custom action without showing a console window by using CAQuietExec
- Testing rollback custom actions with WixFailWhenDeferred
-
7. Installing Wizards
- Introduction
- Adding a wizard to guide users through the installation
- Changing the logo images and default license agreement text of the wizard
- Customizing the wizard by adding a new dialog window to it
- Deciding which dialog to show next depending on the user's choices
- Setting a property based on user input
- 8. Users and Groups
-
9. Handling Prerequisites
- Introduction
- Stopping the installation with a launch condition
- Installing only to supported versions of Windows
- Redistributing the .NET Framework with a bootstrapper
- Executing either a 64-bit or 32-bit MSI depending on the user's operating system
- Downloading resources from the Web with a web installer
- 10. Installing Websites
- 11. Linking to the Web
- 12. Installing SQL Server Databases
- 13. Admin Tasks
- Index
Product information
- Title: WiX Cookbook
- Author(s):
- Release date: January 2015
- Publisher(s): Packt Publishing
- ISBN: 9781784393212
You might also like
video
Wix Web Development [Updated for 2021]
Do you want to create a website but do not know how to code? No problem. …
book
CMake Cookbook
Learn CMake through a series of task-based recipes that provide you with practical, simple, and ready-to-use …
book
WiX: A Developer's Guide to Windows Installer XML
If you’re a developer needing to create installers for Microsoft Windows, then this book is essential. …
book
WiX 3.6: A Developer's Guide to Windows Installer XML
If you’re a developer needing to create installers for Microsoft Windows, then this book is essential. …