安装msvcr90.dll的简单方法! (不含 C++ 可再发行软件包)
我的程序是一个将python文件转换为exe文件的程序。这个exe文件的问题是,如果没有安装python,它就无法运行,并且只需要mscvr90.dll!我不想仅仅为了这个 dll 文件安装 C++ Redistributable Package!那个大胖包!如果我将此 msvcr90.dll 复制到我的应用程序文件夹中,它将无法工作!
我安装python时msvcr90.dll的文件路径是:
C:\windows\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375
我真的不知道python如何安装这个文件,但必须有一个简单的方法这样做。
有什么想法吗?
My program is a converted python file to exe file. The problem with this exe file is that it does not run without python installed and it only needs mscvr90.dll! I don't want to install C++ Redistributable Package just for this dll file! That big fat package! If I copy this msvcr90.dll to my application folder it just won't work!
The file path of msvcr90.dll when I install python is:
C:\windows\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375
I don't really know how python installs this file but there has to be an easy way to do that.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
VCRT 库并不是一个“大胖”包。我现在查看它们,它们只有 2mb 多一点——几乎什么都没有。
也就是说,规避 SxS 链接的唯一真正方法是更改链接到文件的可执行文件的清单。您可以使用 Visual Studio 打开 .exe 并编辑清单以不使用 SxS 链接。
The VCRT libraries are hardly a 'big fat' package. I'm looking at them now and they're just over 2mb - almost nothing.
That said the only real way to circumvent the SxS linking would be to change the manifest of the executable that is linking to the files. You can use Visual Studio to open the .exe and edit the manifest to not use SxS linking.
如果使用 /MT 进行编译,那么它不会动态链接到 msvcr90 库。
If you compile with /MT then it wont dynamically link to the msvcr90 library.