Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

C plus plus MFC application auto starting after installation

Posted on 2009-05-15
8
Medium Priority
?
433 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
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever run into that annoying problem where the computer won't boot?  Wouldn't it be great if you had a tool that would make that disk boot again?  I have found one tool that works more often than not ...
Steps to fix error: “Couldn’t mount the database that you specified. Specified database: HU-DB; Error code: An Active Manager operation fail”
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

972 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