且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Windows 7/8/10上安装VB6

更新时间:2023-02-11 14:08:50

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