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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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.
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.


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.

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tried to place tif image in 6.5 2 48
Free PDF readers besides Adobe Acrobat 9 114
Capture and interpret serial port data 10 61
ramsomware --nintendonx execuable 12 57
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

734 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