Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
2.75/5 (3 votes)
See more:
Hello Everyone...

I developed an MFC C++ Project and my question is, i want to execute .exe application on test computer without installing visual studio on test computer. Of course by deploying the project we can do it, but it ask installation wizard for .NET libraries.
So i dont want each and every client users do this installation.
Please can anyone tell me how can i execute .exe application on test computer without installing visual studio & any other Installation wizard..

Thanks in advance :)
Posted
Comments
Sergey Alexandrovich Kryukov 29-Jan-12 13:40pm    
C++ or C++/CLI, as you are asking about .NET, or both?
--SA

Use DependencyWalker[^] to determine which dlls you need to distribute with your application.

Best regards
Espen Harlinn
 
Share this answer
 
Comments
Amir Mahfoozi 29-Jan-12 23:36pm    
+5
Espen Harlinn 30-Jan-12 6:24am    
Thank you, Amir :)
Chandrasekharan P 30-Jan-12 1:14am    
My 5 too
Espen Harlinn 30-Jan-12 6:24am    
Thank you, Chandrasekharan :)
Guru_C++ 30-Jan-12 7:45am    
Thank you for helping :)
To run you programs, you never need to install Visual Studio anywhere except development computer. In many cases, you don't need any wizard as well, not even installation. A good application should run if you copy the whole output directory anywhere. You application should just run. If you cannot run it outside Visual Studio, don't tell that you "developed a project".

Still, each product has its prerequisites. For a .NET application, the compatible version of (freely re-distributable) .NET Framework is always a prerequisite; for some C++ application, you may need to re-distribute so called "Visual Studio redistributable package" you can find in MSDN. It may or may not be needed; and it's the best to avoid this dependency.

You can just require the user to install all or some of the prerequisite. Second method is deployment of the prerequisites with your installation package. You can combine the two.

—SA
 
Share this answer
 
Comments
Guru_C++ 30-Jan-12 7:48am    
Nope.. I dont want to copy whole output directory.. I need to copy only .exe file in Test computer.. So,,
Sergey Alexandrovich Kryukov 1-Mar-12 4:54am    
This is the same in many cases. And what does it mean "I don't want"? You may not want something which would make your code working. I think you just did not get how it works. One .exe file is just the simplest case. If you have only 1 assembly in the solution, it will make you only one file.

And... is that the reason for vote of "1"?
--SA
Use the install shield software
 
Share this answer
 
Comments
Guru_C++ 30-Jan-12 7:56am    
Thanks..
[no name] 29-Feb-12 22:42pm    
Why to use Install Shield here?
Hi ,

Before Executing your MFC executable file in the test machine Install "Microsoft Visual C++ Redistributable Package". It will provide all the dependency file (MFC & VC IDE tool) and those will be placed in "system32" folder.

www.microsoft.com/download/en/details.aspx?id=29

OR

you could manually put all the dependency file of MFC and VS in system32 .

Hope this is useful for you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900