C++/VB - How to C++ exe without installing C++ Redistributable Package

Asked By Leo
28-May-10 02:01 PM
When I tried to deploy the EXE developed using MFC in VS 2008 on to
the client machine, I got the following error: This application has
failed to start because the application configuration is incorrect.
Reinstalling the application may fix the problem. I did some research
and noticed that this is a common problem if I install EXE onto
machine without C++ installed. It seems Microsoft requires to install C
++ Redistributable Package on client machine.

However in my senario, the client machine has strong requirement that
I cannot install anything physical onto the machine and my EXE can only
be run in a USB drive. Is there anything I can do to make my
application run on the client machine without installing anything?
Recompile my work in VS 6?

Thanks in advance...
Redistributable
(1)
Application configuration
(1)
Client machine
(1)
MFC DLL
(1)
EXE
(1)
  David Ching replied to Leo
28-May-10 02:51 PM
You actually have two pretty good choices.  You can either static link the
CRT/MFC libs into your .exe so that that is all you need to distribute.
Edit your project properties by right clicking on the project in the
Solution Explorer window and select Properties.  In the General tab, choose
to statically link MFC.

The other option is to use an "app-local" deployment of the CRT and MFC
DLL's which you put into either the same folder, or a sub-folder of, your
.exe.  The DLL's you need to redistribute are in the e.g. c:\program
files\microsoft visual studio 2008\vc\redist folder.  You need the proper
platform (e.g. x86, etc.) and the CRT and MFC (if it is an MFC app.)

-- David
Create New Account
help
some PCs for a reason i dont really know. it gives me this error. this application has failed to start because the application configuration is incorrect. reinstalling the application may fix the problem. . here is my code, if it is a compiler error on it really means is that you did not install all the DLLs upon which your application depends, or that a manifest was not found in the file for the CRT. Most likely, you did not install the version of the VC redistributable files (like the CRT, MFC, etc.). Aegis Delacour ha scritto: The only compiler error I is one of the supported installation methods. Other ways are to a) statically link the application; b) to use an app local deployment; c) to use the vc_redist executable. I recommend a separate entry to Add / Remove Programs which the user can install separate from your application and then your app will not run anymore. - - David Yes, you can expect a very
Windows 7 patch) under Windows 7 with dynamic library option. While trying to run that application on other Vista / XP systems, it fails, so I installed Microsoft Visual C++ 2005 Redistributable Package (x86) but it did not help since I still receive "This application has failed to start because the application configuration is incorrect. Reinstalling application may fix this problem." message. When I compile with static library, everything is OK (except 1) On 5 Mar 2011 16:45:29 GMT, Bubba <nickname@banelli.biz.invalid> The redistributable package is probably installing the MFC and other Microsoft dll's for a slightly different to create an install program using the same VS2005 system you used to create the application. The installer will ensure that the proper Microsoft dll's are installed. r norman norman
Application built with vc9 doesn't run on machine that doesn't have vc9 C++ / VB Hi, I have a MFC application. I build a x64 debugging edition of it on 32 bit windows and tried to run it from another x64 machine through file share. The application does not run and I get this: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. - -- -- -- -- -- -- -- -- -- -- -- -- -- OK - -- -- -- -- -- -- -- -- -- -- -- -- -- Anybody know how to get it through? A lot thanks is misleading, and the suggestion in and of itself is offensive. When you install this application, did you create an installation package to do it, or did you just copy it
Application stopped running in other computers C++ / VB Hi I'm writing a form application in Visual C++ Express. Earlier versions of the application were running fine in other computers, given they installed the DotNet and the VC runtime libraries. After making some changes, the application is failing to start in other computers, producing the following error configuration is incorrect. reinstalling the application may fix this problem" In the beginning I used to get this error but fixed 0.*")]; [assembly:ComVisible(false)]; [assembly:CLSCompliantAttribute(true)]; I'll appreciate any help in getting my application to start again in other macines Thanks very much Marcos VC Language Discussions SP (1 to a suggestion in the msdn forum, by building another installer of VC++ libraries using Redistributable Merge Modules installed by VC++ Express, as explained here: http: / / blogs.msdn.com / nikolad / archive