WIN7 above system installation VB6 solution, attach a batch processing.

Source: Internet
Author: User
Tags ole

1, the installation display Oledb32r.dll cannot register in the system registration database
In the C drive to find Oledb32r.dll, renamed to Oledb32r-2.dll can, DLL conflict.

2, WIN7 installation VB6 prompt VB98ENT.STF Error solution:
Found is Setupwiz.ini file parameter error, method:
1. Open the Setupwiz.ini and change "Acme=acmboot.exe" to "=setup\acmsetup.exe";
2.STF=SETUP\VB98ENT.STF change to =SETUP\ACMSETUP.STF, save exit;
3. Go to the Setup folder and rename vb98ent.stf to ACMSETUP.STF;
4. Copy all the files under the Vb6.0\setup to vb6.0, the directory, will be prompted if there is a file to replace, I chose to replace.
5. Run Setup.exe.

Install the VB6 batch file (copy to the directory where the VB6 is located, double-click Run). bat

@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 replaces the error parameter in 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 This is reserved blank line
Set "line=!line:acmboot.exe=acmsetup.exe!"
Set "line=!line:vb98ent.stf=acmsetup.stf!"
Echo!line!
Goto:eof

WIN7 above system installation VB6 solution, attach a batch processing.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.