WIN7以上系統安裝VB6的解決辦法,附上個批處理。

1、安裝時顯示oledb32r.dll不能在系統註冊數據庫中註冊
在C盤查找oledb32r.dll,更名爲oledb32r-2.dll便可,dll衝突了。數據庫

2、WIN7安裝VB6提示VB98ENT.STF錯誤的解決辦法:
發現是 setupwiz.ini文件參數錯誤,辦法:spa

一、不要把VB6放在帶有空格的目錄!!!code

2.打開setupwiz.ini,把"acme=acmboot.exe"改成"=setup\acmsetup.exe"; blog

3.STF=setup\vb98ent.stf改成=setup\acmsetup.stf, 保存退出;
4.進入setup文件夾,把vb98ent.stf更名爲acmsetup.stf;
5.把 vb6.0\SETUP 下的全部文件複製到vb6.0,目錄下,會提示有個文件是否要替換,我是選擇了替換。
6.運行setup.exe便可。
token

 或者,直接用這個批處理:rem

安裝VB6批處理文件(請拷貝到VB6所在的目錄雙擊運行).batit

@echo off
cd /d %~dp0
ren "C:\Program Files (x86)\Common Files\System\Ole DB\oledb32r.dll" oledb32r-2.dll
ren "C:\Program Files\Common Files\System\Ole DB\oledb32r.dll" oledb32r-2.dll
echo n|copy /-y %~dp0setup\VB98ENT.STF %~dp0setup\acmsetup.stf
echo n|copy /-y %~dp0setup\*.* %~dp0
rem 替換setupwiz.ini中的錯誤參數:
@echo off & setlocal enabledelayedexpansion
del new_1.txt
for /f "tokens=*" %%i in (SETUPWIZ.INI) do (
if "%%i"=="" (echo.) else (set "line=%%i" & call :chg)
)>>new_1.txt
attrib -s -h -r %~dp0setupwiz.ini
move new_1.txt setupwiz.ini
start setup.exe
exit

:chg
rem 這個是保留空行
set "line=!line:acmboot.exe=acmsetup.exe!"
set "line=!line:vb98ent.stf=acmsetup.stf!"
echo !line!
goto :eofio

 3、win8.1 WIN10 64位裝vb6.0卡在裝程序正在更新您的系統class

一、安裝時提示是否用Visual SourceSafe,要選擇否。
二、自定義安裝,接着選擇「數據訪問」,再點擊2次「更改選項」,把ADO和RDS前面的勾去掉便可。
三、根據提示正常重啓下便可。
程序

相關文章
相關標籤/搜索