Solved

C plus plus MFC application auto starting after installation

Posted on 2009-05-15
8
424 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Scripting vs. Programming languages 25 178
SonarQube on Linux vs Windows 3 51
Salesforce CPQ Steelbrick - Select All Checkbox 3 51
How to safely test out TFTP server software 12 92
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
A list of useful business intelligence software.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

808 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