gpt4 book ai didi

windows - 如何分发 VB6 引导文件?

转载 作者:可可西里 更新时间:2023-11-01 11:21:44 25 4
gpt4 key购买 nike

我正在将我的 VB6 安装程序移植到 NSIS。查看 LST 文件,有一个用于引导文件的部分:

[Bootstrap Files]
File1=@VB6STKIT.DLL,$(WinSysPathSysFile),,,..........
File2=@COMCAT.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,......
File3=@STDOLE2.TLB,$(WinSysPathSysFile),$(TLBRegister),...........
File4=@ASYCFILT.DLL,$(WinSysPathSysFile),,,...........
File5=@OLEPRO32.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),.........
File6=@OLEAUT32.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,........
File7=@msvbvm60.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,...........
File8=@wshom.ocx,$(WinSysPath),$(DLLSelfRegister),$(Shared),.........

还有一个用于 setup1 文件

[Setup1 Files]
File1=@drillcycles.pre,$(AppPath).......
File2=@twoz.pre,$(AppPath),.......

在另一篇文章中,有人警告我分发 wshom.ocx 文件(引导文件),他说:

"That wshom.ocx is not meant to be distributed in this way. On downlevel versions of Windows this might succeed, only to break WSH and other scripting on the system. Do not redist this library like this. "

所以,我想知道分发引导文件是否有任何注意事项?我应该分发它们吗?

谢谢

最佳答案

此警告与您正在安装的其他一些文件更为相关。 Windows 仍然可以运行一个乏味的脚本解释器,但当你不小心 oleaut32.dll 或 asyncfilt.dll 时它就无法生存。这就是为什么这些文件不会被糟糕的安装程序意外覆盖的原因,Windows 文件系统保护功能会立即恢复正确的文件。

您实际在需要安装这些文件的机器上运行安装程序的可能性为零。 Windows 95 消失了。如果确实存在这样一台笨拙的机器,您安装错误版本的可能性非常高。这是让它摆脱长期苦难的一种方式。

只要您的安装程序采取了最低限度的反制措施来避免通过简单的版本检查将新的 DLL 替换为旧的副本,那么这就不会出错。别担心。请考虑,是时候停止依赖这些古老的工具了。

关于windows - 如何分发 VB6 引导文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7095721/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com