在Windows 7/8/10上安装VB6 [英] Installation of VB6 on Windows 7 / 8 / 10

查看:98
本文介绍了在Windows 7/8/10上安装VB6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 7上安装VB6时遇到了问题.我意识到这是一个旧式IDE,我对网络的研究并没有太多帮助.每次我尝试在Windows 7上安装VB6时,除了会通知我有关兼容性问题的警报外,安装程序还会运行并在接近尾声时失败,最终安装过程将失败.而且,当再次尝试时,某些dll文件可能无法访问.

I have been having problems installing VB6 on Windows 7. I realize it is a legacy IDE and my research on the net hasn't been that much of help. Every time I attempt to install VB6 on Windows 7, besides the alert notifying me of compatibility issues, the setup runs and fails near the end, to which the installation process fails ultimately. And when another attempt is made, certain dll files are supposedly unreachable.

这些只是我访问过的几个链接中的一些链接,希望获得解决方案,甚至只是看到一些面包屑:

These are but some of the few links I have visited in the hopes of attaining a solution or even just seeing a few bread crumbs:

在任何人说为什么当要发布Microsoft Visual Studio的较新版本时,为什么要在Windows 7上安装VB6!"之前,仍然需要VB6来维护和更新已经存在的旧系统.

Before anyone says, "Why on earth would you want to install VB6 on Windows 7 when there are newer versions of Microsoft Visual Studio out!", VB6 is still required to maintain and update a legacy system already in place.

问题是,有没有办法在Windows 7上安装VB6而没有兼容性问题?在XP中安装虚拟盒并运行VB6 IDE更好吗?还是有其他我可能没有遇到过的方法可以解决这个难题?

So the question(s) is, is there a way to install VB6 on Windows 7 without compatibility issues? Is it better to install a virtual box and to run the VB6 IDE in XP? Or is there some other means to which I have not encountered that may be applicable to this dilemma?

推荐答案

VB6在Windows 7(和Windows 8/Windows 10)上的安装也不错,但有一些警告.

VB6 Installs just fine on Windows 7 (and Windows 8 / Windows 10) with a few caveats.

这里是安装方法:

  • 在继续下面的安装过程之前,请在C:\Windows中创建一个名为MSJAVA.DLL的零字节文件.安装过程将查找该文件,如果找不到该文件,将强制安装旧的Java,并需要重新启动.通过创建零字节文件,可以绕过发霉的Java的安装,并且不需要重新启动.
  • 关闭UAC .
  • 插入Visual Studio 6 CD.
  • 退出自动运行设置.
  • 浏览到VS6 CD的根文件夹.
  • 右键单击SETUP.EXE,选择Run As Administrator.
  • 在此警告和其他程序兼容性助手警告上,单击运行程序".
  • 单击下一步.
  • 点击我接受协议",然后点击下一步.
  • 输入名称和公司信息,然后单击下一步".
  • 选择自定义设置",然后单击下一步".
  • 单击继续",然后单击确定".
  • 安装程序将思考自己"大约2分钟.可以通过启动任务管理器并检查ACMSETUP.EXE的CPU使用率来验证处理.
  • 在选项列表中,选择以下内容:
    • Microsoft Visual Basic 6.0
    • ActiveX
    • 数据访问
    • 图形
    • 所有其他选项均应取消选中.
    • Before proceeding with the installation process below, create a zero-byte file in C:\Windows called MSJAVA.DLL. The setup process will look for this file, and if it doesn't find it, will force an installation of old, old Java, and require a reboot. By creating the zero-byte file, the installation of moldy Java is bypassed, and no reboot will be required.
    • Turn off UAC.
    • Insert Visual Studio 6 CD.
    • Exit from the Autorun setup.
    • Browse to the root folder of the VS6 CD.
    • Right-click SETUP.EXE, select Run As Administrator.
    • On this and other Program Compatibility Assistant warnings, click Run Program.
    • Click Next.
    • Click "I accept agreement", then Next.
    • Enter name and company information, click Next.
    • Select Custom Setup, click Next.
    • Click Continue, then Ok.
    • Setup will "think to itself" for about 2 minutes. Processing can be verified by starting Task Manager, and checking the CPU usage of ACMSETUP.EXE.
    • On the options list, select the following:
      • Microsoft Visual Basic 6.0
      • ActiveX
      • Data Access
      • Graphics
      • All other options should be unchecked.
      • 您可能会注意到在Windows 7上成功安装VB6之后,在IDE中的工作会变慢.例如,调整表单上对象的大小确实很麻烦.
      • 安装VB6之后,您将需要更改IDE可执行文件的兼容性设置.
      • 使用Windows资源管理器,浏览安装VB6的位置.默认情况下,路径为 C:\Program Files\Microsoft Visual Studio\VB98\
      • 右键单击VB6.exe程序文件,然后从上下文菜单中选择属性.
      • 单击兼容性"选项卡.
      • 在以下每个复选框中打勾:
      • 在Windows XP(Service Pack 3)的兼容模式下运行此程序
        • 禁用视觉主题
        • 禁用桌面合成
        • 在DPI设置较高时禁用显示比例缩放
        • 如果您打开了UAC,建议您选中以管理员身份运行该程序"框
        • You might notice after successfully installing VB6 on Windows 7 that working in the IDE is a bit, well, sluggish. For example, resizing objects on a form is a real pain.
        • After installing VB6, you'll want to change the compatibility settings for the IDE executable.
        • Using Windows Explorer, browse the location where you installed VB6. By default, the path is C:\Program Files\Microsoft Visual Studio\VB98\
        • Right click the VB6.exe program file, and select properties from the context menu.
        • Click on the Compatibility tab.
        • Place a check in each of these checkboxes:
        • Run this program in compatibility mode for Windows XP (Service Pack 3)
          • Disable Visual Themes
          • Disable Desktop Composition
          • Disable display scaling on high DPI settings
          • If you have UAC turned on, it is probably advisable to check the 'Run this program as an Administrator' box

          更改这些设置后,启动IDE,然后一切恢复正常,并且IDE不再缓慢.

          After changing these settings, fire up the IDE, and things should be back to normal, and the IDE is no longer sluggish.

          :更新了无效链接,以指向具有相同说明的其他页面

          Updated dead link to point to a different page with the same instructions

          编辑:该链接中的链接不断消失,更新了帖子中的实际说明

          Updated the answer with the actual instructions in the post as the link kept dying

          这篇关于在Windows 7/8/10上安装VB6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆