
- 260 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
WiX Cookbook
Tools to learn more effectively

Saving Books

Keyword Search

Annotating Text

Listen to it instead
Information
WiX Cookbook
Table of Contents
WiX Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Organizing and Building WiX Projects
Introduction
Installing WiX and creating a new project in Visual Studio 2013
Getting ready
How to do it…
How it works…
There's more…
Referencing the output of a .NET console application in a WiX project by using a preprocessor variable
Getting ready
How to do it…
How it works…
Separating a portion of WIX markup into its own library
Getting ready
How to do it…
How it works…
There's more…
Compiling a WiX installer on a build machine using MSBuild
Getting ready
How to do it…
How it works…
Building a WiX installer from the command line
Getting ready
How to do it…
How it works…
2. Installing Files and Directories
Introduction
Installing directories onto the target computer
Getting ready
How to do it…
How it works…
Adding a file to a directory
Getting ready
How to do it…
How it works…
There's more…
Installing a 64-bit executable file to Program Files
Getting ready
How to do it…
How it works…
There's more…
Including one component or another depending on the condition
Getting ready
How to do it…
How it works…
There's more…
Using the heat.exe tool to generate components
Getting ready
How to do it…
How it works…
There's more…
3. File and Folder Permissions
Introduction
Changing the permissions on a folder for a user
Getting ready
How to do it…
How it works…
There's more…
Changing the permissions on a file for a user
Getting ready
How to do it…
How it works…
Marking a file as read only
Getting ready
How to do it…
How it works…
Creating a file share
Getting ready
How to do it…
How it works…
Setting the default program for a file type
Getting ready
How to do it...
How it works...
There's more...
4. Shortcuts
Introduction
Adding an application shortcut to the Start menu
Getting ready
How to do it...
How it works...
There's more...
Adding an icon to a shortcut
Getting ready
How to do it...
How it works...
There's more...
Placing a shortcut on the desktop
Getting ready
How to do it...
How it works...
Creating a shortcut to a folder
Getting ready
How to do it...
How it works...
Creating an advertised shortcut that installs a feature on demand
Getting ready
How to do it...
How it works...
There's more...
5. Editing XML Files during Installation
Introduction
Adding a new element to an XML file during installation
Getting ready
How to do it...
How it works...
There's more...
Setting the value of an attribute on an XML element
Getting ready
How to do it...
How it works...
Inserting inner text into an XML element
Getting ready
How to do it...
How it works...
There's more...
Adding an XML element only if it does not already exist
Getting ready
How to do it...
How it works...
Removing an XML element
Getting ready
How to do it...
How it works...
6. Custom Actions
Introduction
Creating a C# custom action and referencing it in your project
Getting ready
How to do it...
How it works...
There's more...
Passing information entered by a user to a deferred custom action
Getting ready
How to do it...
How it works...
Preventing custom action data from being displayed in the install log
Getting ready
How to do it...
How it works...
Running an executable as a custom action without showing a console window by using CAQuietExec
Getting ready
How to do it...
How it works...
There's more...
Testing rollback custom actions with WixFailWhenDeferred
Getting ready
How to do it...
How it works...
7. Installing Wizards
Introduction
Adding a wizard to guide users through the installation
Getting ready
How to do it...
How it works...
There's more…
Changing the logo images and default license agreement text of the wizard
Getting ready
How to do it...
How it works...
Customizing the wizard by adding a new dialog window to it
Getting ready
How to do it...
How it works...
Deciding which dialog to show next depending on the user's choices
Getting ready
How to do it...
How it works...
Setting a property based on user input
Getting ready
How to do it...
How it works...
8. Users and Groups
Introduction
Creating a local user
Getting ready
How to do it...
How it works...
Adding a new user to a new group
Getting ready
How to do it...
How it works...
Adding a new user to an existing group
Getting ready
How to do it...
How it works...
Adding an existing user to a new group
Getting ready
How to do it...
How it works...
Adding a new user with the log on as a service security setting
Getting ready
How to do it...
How it works...
9. Handling Prerequisites
Introduction
Stopping the installation with a launch condition
Getting ready
How to do it...
How it works...
There's more...
Installing only to supported versions of Windows
Getting ready
How to do it...
How it works...
There's more...
Redistributing the .NET Framework with a bootstrapper
Getting ready
How to do it...
How it works...
Execu...
Table of contents
- WiX Cookbook
Frequently asked questions
Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access WiX Cookbook by Nick Ramirez in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Languages. We have over one million books available in our catalogue for you to explore.