在不安装Visual Studio的情况下执行MFC .exe应用程序
大家好...
我开发了一个MFC C ++项目,我的问题是,我想在测试计算机上执行.exe应用程序,而无需在测试计算机上安装Visual Studio.当然,通过部署项目我们可以做到这一点,但是它要求安装向导提供.NET库.
因此,我不希望每个客户端用户都进行此安装.
请任何人告诉我如何在不安装Visual Studio& amp;的情况下在测试计算机上执行.exe应用程序.任何其他安装向导..
在此先感谢:)
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 :)
使用 DependencyWalker [ ^ ]来确定您需要随应用程序分发哪些dll.
最好的问候
Espen Harlinn
Use DependencyWalker[^] to determine which dlls you need to distribute with your application.
Best regards
Espen Harlinn
要运行您的程序,除了开发计算机之外,您无需在任何地方安装Visual Studio.在许多情况下,您也不需要任何向导,甚至也不需要安装.如果您将整个输出目录复制到任何位置,则应运行良好的应用程序.您的应用程序应该只运行.如果您无法在Visual Studio之外运行它,请不要告诉您开发了一个项目".
尽管如此,每种产品都有其先决条件.对于.NET应用程序,(自由重新分发).NET Framework的兼容版本始终是必备条件;对于某些C ++应用程序,您可能需要重新分发可以在MSDN中找到的所谓的"Visual Studio可再发行程序包".可能需要也可能不需要;最好避免这种依赖.
您可以只要求用户安装所有或某些先决条件.第二种方法是使用安装包部署必备组件.您可以将两者结合起来.—SA
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
使用安装屏蔽软件