Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I launch an application after install in a Visual Studio Setup Project

Tags:

I have created a setup project using Visual Studio 2008. After the application is finished installing, I would like to have it start up immediately. Any thoughts on how this can be done?

like image 372
adeel825 Avatar asked Oct 29 '08 16:10

adeel825


People also ask

How do I start Visual Studio after installation?

If you have Visual Studio open, go to Tools > Get Tools and Features... which opens the Visual Studio Installer. Or, open the Visual Studio Installer from the Start menu. From there, you can choose the workloads or components that you wish to install. Then, choose Modify.

How do I use Visual Studio Installer project?

From Visual Studio, choose Extensions > Manage Extensions, and search for "Visual Studio Installer Projects". Or, download the extension directly from the Marketplace. From the Start window, choose Create a new project, and then type "setup" in the search box. Choose a Setup project, and follow instructions.

How do I add a custom action to Visual Studio setup project?

On the Action menu, click Add Custom Action. In the Select Item in Project dialog box, double-click the Application Folder. Select the gadget assembly that was added to the setup project, and then click OK. In the Properties window, make sure that the InstallerClass property is set to True (this is the default).


1 Answers

I've used a script to place a checkbox "Launch [ProductName]" on the final form of the MSI. I cannot take any credit for the script though. You can find the script over on Aaron Stebner's blog at MSDN http://blogs.msdn.com/astebner/archive/2006/08/12/696833.aspx

There's an interesting article about it on CodeProject and some good answers there also (which is where I found Aaron's article). http://www.codeproject.com/KB/install/Installation.aspx

Finally, there's also some other similar questions on StackOverflow

How to run executable at end of Setup Project?

How to automatically start my application when my setup is done in C# setup project

like image 173
Peter Kelly Avatar answered Sep 23 '22 13:09

Peter Kelly