问题描述
所以我使用Windows 7在Microsoft Visual C ++ 2010 Express中用C编写了一个程序,并希望将它从一个网站分发到所有版本的Windows,从XP向上这就像我所理解的那样称为部署。
我之前已经获得了使用VS 2015社区版的建议,但这是不可能的在我的电脑上安装这个程序,我已经放弃了找出原因。安装开始后,我得到一个对话框,说"setup
failed。"所以我需要找到另一种部署方式。
正如我从阅读微软自己的网站了解到的那样,部署是一个包含必要的dll文件的问题。因此,我运行了一个名为Dependency Walker的程序,发现我的程序所依赖的唯一dll,即不是
已经是Windows系统的一部分,是Fmod.dll和MSVCR100.dll。所以我已将包含这些dll文件的程序副本转移到运行Windows 7的计算机上,并且工作正常。
但是然后我也在运行Windows XP Service Pack 3的旧计算机上做了同样的事情。但是当我之后尝试运行该程序时,我收到一条错误消息,说"该程序未正确安装。"我还运行了分期付款程序
在同一目录中名为"vcredist_x86.exe",但仍然收到相同的错误消息。那为什么不起作用呢?我该怎么做才能解决这个问题?
提前致谢。
So I have made a program in C in Microsoft Visual C++ 2010 Express with Windows 7 and want to distribute it from a web site to all versions of Windows, from XP and upwards. This is as I have understood called deployment.
I have previously got the advice to use the VS 2015 Community Edition for this, but it is not possible to install this program on my PC, and I have given up to find out why. After the installation starts, I get a dialogue box saying "setup failed." So I need to find another way for deployment.
As I have understood from reading Microsoft’s own websites, deployment is a question of including the necessary dll files. I have thus run a program called Dependency Walker and found that the only dlls my program depends on, that is not already part of the Windows system, is Fmod.dll and MSVCR100.dll. So I have transferred a copy of my program including these dll files to a computer running Windows 7 and it works fine.
But then I also did the same on an old computer running Windows XP Service Pack 3. But when I afterwards tried to run the program, I got an error message saying "the program was not properly installed." I also run an installment program called "vcredist_x86.exe," in the same directory, but still got the same error message. So why doesn't it work? What can I do to resolve this?
Thanks in advance.
这篇关于将使用Microsoft Visual C ++ 2010 Express在Windows 7中制作的C程序部署到Windows XP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!