RodH257
RodH257

Reputation: 3632

Creating an installer with WPF forms, packaged files and custom setup actions

I'm trying to create a way of deploying a set of tools (which are add-ins to 3rd party software) to my users.

I would like to do the following:

Can anyone point me into the right direction for this? I had a look at deployment projects in Visual Studio but I'm not sure if they are what I'm after. Main problem is they are ugly, I would like to have a nice WPF installer, and have a more custom experience. But I guess that can be traded off if its going to make things easier.

I was thinking, I could just make my own C# project that extracts the files, but I have no idea how to package them up and extract them all as part of one download (like the MSI files that the deployment projects create). Can anyone point me in the right direction?

Upvotes: 1

Views: 1988

Answers (2)

Josh
Josh

Reputation: 69262

The thing about having a WPF installer is that your users will need an appropriate version of .NET installed just to install your application. This may be fine if you are using .NET 3.0 and your software requires Windows Vista or greater. But if you use .NET 3.5 or 4.0 simply stating .NET as a requirement may not be enough. What do you do if the user uninstalls .NET then tries to uninstall your application?

This is why it is generally considered a bad idea to use .NET custom actions in an installer too.

While mmr's recommendation of WiX is a good one (I've used it and it's very powerful) it should be noted that it has a steep learning curve. Or at least it did when I used it last because there was little or no mature tools support for it. You basically crafted everything by hand.

If you don't have the developer resources to spend a lot of time on the installer, I'd suggest looking at a commercial installer authoring product that will probably enable you to get up and running quickly.

But you can probably save a lot of time by moving the serial number / activation piece out of the installer and do that from within your application on the first run.

Upvotes: 2

mmr
mmr

Reputation: 14919

Go to WiX.

It turns out that writing your own installer is way, way more complicated than it looks like it is, and making sure that it plays nice across all versions of windows and so forth is not so simple. So, use theirs.

Upvotes: 0

Related Questions