更新时间:2021-08-06 19:14:40
coverpage
WiX Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 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
Chapter 2. Installing Files and Directories
Installing directories onto the target computer
Adding a file to a directory
Installing a 64-bit executable file to Program Files
Including one component or another depending on the condition
Using the heat.exe tool to generate components
Chapter 3. File and Folder Permissions
Changing the permissions on a folder for a user
Changing the permissions on a file for a user
Marking a file as read only
Creating a file share
Setting the default program for a file type
Chapter 4. Shortcuts
Adding an application shortcut to the Start menu
Adding an icon to a shortcut
Placing a shortcut on the desktop
Creating a shortcut to a folder
Creating an advertised shortcut that installs a feature on demand
Chapter 5. Editing XML Files during Installation
Adding a new element to an XML file during installation
Setting the value of an attribute on an XML element
Inserting inner text into an XML element
Adding an XML element only if it does not already exist
Removing an XML element
Chapter 6. Custom Actions
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
Chapter 7. Installing Wizards
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
Chapter 8. Users and Groups
Creating a local user
Adding a new user to a new group
Adding a new user to an existing group
Adding an existing user to a new group
Adding a new user with the log on as a service security setting
Chapter 9. Handling Prerequisites
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
Chapter 10. Installing Websites
Spinning up a new application pool in IIS
Adding a website to IIS that runs under your app pool
Creating a virtual directory
Adding a web application to IIS
Setting up a website to use SSL
Chapter 11. Linking to the Web
Adding a hyperlink control to a wizard dialog
Opening an installed HTML file after a successful installation
Launching a web page when a user uninstalls our software
Installing a shortcut that opens a web page
Updating programs and features to show a link to our company's website
Chapter 12. Installing SQL Server Databases
Installing a SQL Server instance with a bootstrapper
Adding a database to a SQL Server instance
Creating a table within a SQL Server database
Inserting data into a database table
Creating an ODBC data source for a SQL Server instance
Chapter 13. Admin Tasks