Jerry
Jerry

Reputation: 6557

How to deploy WPF application with WIX

I have started to use WIX to deploy a WPF application. I have created the .wxs file with the desired interface features etc...

My questions is how to distribute the required .Net files that support my WPF executable? Not the .net framework or sql server express, but the dependencies needed to run my executable.

Should the process include building a msi with VS Installer, then including that msi into my WIX script and running that inside of my WIX msi?

Or, what is the correct process for distributing a WPF executable with WIX?

Upvotes: 1

Views: 1590

Answers (3)

Eli
Eli

Reputation: 444

As an alternative way, you might see also this post Embedding dlls in a compiled executable to embed all the dll needed (like the interop ones for example) using Costura.Fody. Using WIX there is no more need to add any dependent dll as components in the .wsx file.

Upvotes: 0

Christopher Painter
Christopher Painter

Reputation: 55571

Here's the process that I follow for any application.

1) Start with a clean VM that represents the least common denominator of a machine I want to target. Let's say WinXP SP2 32bit.

2) Deploy my application by hand and record all of the steps in a word document. Then try those steps on other OS's to make sure you didn't miss anything.

3) Take each of the steps in my document and implement them in WxS. Keep in mind that Windows Installer and Windows Installer XML is a declarative programming language not an imperative programming language. You don't tell it to xcopy files from dir a to dir b, you describe the directory structure and the installer takes care of it.

BTW, of the things you mentioned, your asking for help with what I consider the simple stuff and excluding the harder more complicated stuff.

Upvotes: 1

Bernard
Bernard

Reputation: 7961

I don't think your question pertains to WiX or WPF at all. What you need to ensure is that you package up the necessary dependencies along with your installer, whatever they may be. Referencing your dependency files in your installer script should be sufficient.

Upvotes: 4

Related Questions