Book Image

WiX Cookbook

By : Nicholas Matthew Ramirez
1 (1)
Book Image

WiX Cookbook

1 (1)
By: Nicholas Matthew Ramirez

Overview of this book

Table of Contents (20 chapters)
WiX Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Setting the default program for a file type


Maybe you're packaging up a media player that processes MP3 files, or perhaps it's photo editing software that must consume JPEG files. Many applications must interact with specialized file types, and occasionally companies develop proprietary data formats that are stored in files with custom extensions. For example, Photoshop files use the .psd file extension.

In this recipe, we'll see how to set the application that we're installing as the default program to use for a certain type of file. We'll use the extension .xyz. Our application will be opened when the end user double-clicks on a file called test.xyz that we'll create.

Getting ready

To prepare for this recipe, perform the following steps:

  1. Create a setup project and name it DefaultProgramInstaller.

  2. Our application will process .xyz files. So, within the same Visual Studio solution, add a C# Console Application project, name it XyzHandler, and replace the code in Program.cs with the following...