Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

C plus plus MFC application auto starting after installation

Posted on 2009-05-15
8
Medium Priority
?
431 Views
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
0
Comment
Question by:jeovaalmeida
[X]
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
8 Comments
 
LVL 3

Expert Comment

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

Author Comment

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

Expert Comment

by:nhenny2009
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.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:jeovaalmeida
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.
0
 
LVL 3

Expert Comment

by:nhenny2009
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.

0
 

Author Comment

by:jeovaalmeida
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.
0
 

Accepted Solution

by:
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.
0
 

Author Comment

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

Featured Post

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

719 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