Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make my own Installer from C#?

I've been quite liking the new Installer's Microsoft have used, mainly for their Blend installations which use WPF, I'm wondering if I can make something like this for my application?

The main worries are creating the Program Files Directory and registering the application with Windows so it adds it to the add/remove applications list.

Is there anyone with a bit of experience on this?

Thanks

like image 448
Sandeep Bansal Avatar asked Jul 21 '10 18:07

Sandeep Bansal


1 Answers

Microsoft have been using WiX with several of their installers and have managed to create some pretty funky, user friendly and accessible user interfaces. Examples of which include SQL Server and Microsoft Office.

It sounds like your installer doesn't need to do too much to the system, create a program files directory and install some files there. You are best off using Windows Installer to handle this, this is what it is built for, rather than rolling your own. You will get all of the functionality for coping with failures and rolling back safely out of the box. The effort required to create a basic installer in WiX is truly minimal and adding a basic GUI is just as easy.

like image 91
fletcher Avatar answered Oct 16 '22 07:10

fletcher