C plus plus MFC application auto starting after installation

Posted on 2009-05-15
Last Modified: 2013-12-14
I have a C plus plus (mfc framework) application, developed using visual studio 2008.

I added a Setup and Deployment project, added my files and created the MSI file for intallation.

Now I want that, after the installation finishes, my app be started automatically. How can it be done? (without using Installshield)

ps. sorry for the plus plus, but the preview of this post didn't show the plus sign
Question by:jeovaalmeida
  • 5
  • 3

Expert Comment

ID: 24399973
You could wrap in ChilKatZip or any other self-extracting, self-executing compressed file.

Author Comment

ID: 24400766
This will allow me to run an exe after the uncompression, not after the installation, I suppose ...

Expert Comment

ID: 24400823
Sorry, I should have been a little clearer.  What I would suggest is creating a simple bootstrapper that will first launch your MSI and then launch your applications.  You would wrap in ChilKatZip or you could also use iexpress.exe (%WINDIR%\system32) to then launch the bootstrapper after the extraction.

Author Comment

ID: 24400890
What is a bootstrapper exactly? And how do I create a simple one? e.g. which tool i'll have to use?
What I have in hand is visual studio 2008 and the MSI file generated by the Setup and Deployment project.
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.


Expert Comment

ID: 24400958
Well, you can create a bootstrapper in many different languages.  Currently I have to create my bootstrappers in c++ as I use them to install the .NET framework first so I can't really write them in C#.  But if you know that your target/client machines will have the .NET framework installed then you could write a simple bootstrapper in C#.NET (1.1, 2.0) that simply is the controller and will first start the msi and then your application.


Author Comment

ID: 24401088
My app is native C++, the dotNet framework is not required.
I wil have to search for more info abot writing a bootstrapper app, or consider using other installer applications, like Innosetup.
Thanks anyway.

Accepted Solution

jeovaalmeida earned 0 total points
ID: 24411092
I took a look at InnoSetup. I managed to do what I wanted it it.
thanks nhenny2009 for taking the time to help me.

Author Comment

ID: 24411102
Hmm, how do I simply close this question?

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Visual xHarbour 1 76
What does Survey Monkey cost? 7 82
Thin secure Windows 10 5 48
Recommendation vb6 to or others 14 36
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now