Mike-Ward.Net

Launch product after setup finishes in MSI installers

Visual Studio 2008 includes a setup project that can build MSI installers for your products. The authoring interface is a bit clunky but it incorporates most of the features one would want in a robust installer. Furthermore, since it is a Windows MSI Installer, it provides enterprise level options like feature selection and rollback. All in all, its a powerful and useful package.

Many installers offer to launch the product after the installer finishes. I’ve always found this feature handy. MSI installers natively support this “Launch product after install finishes” feature. Unfortunately, the Visual Studio IDE UI does not expose this customization.

But not all is lost. With a bit of JavaScript and a custom build command, you can access the Windows Installer object model and perform this customization. Aaron Stebner’s WebLog provides an excellent tutorial and script to enable the “Launch product after setup finishes” feature.

I added Aaron’s script and custom build step to Desk Drive’s installer. As you can see from the image below, it works quite nicely.

launchonexit

Don’t forget to keep those translations coming for Desk Drive. I have English, German, Slovakian, Japanese and Finnish.

← newer older →
.Net, Technology, Life, Whatever

Recent Posts

VSColorOutput for VS 2017 Released
Quick ReSharper tip for inline templates
NoSQL vs. NewSQL: What's the Difference?
Exploring Mithril, A JavaScript Framework for Building Brilliant Applications
Tweetz 1.1
Tweetz Desktop 1.0
Tweetz 0.11 Released
More... (1073)

Donate with PayPal