Use a batch file to complete registration information.
When writing software, the dynamic link library in the Window system must be registered for use. For example, to run the ADO program in Windows XP, you must register regtlibv12 msado60_Backcompat_i386.tlb in the current directory.
For the first time in software use, you must perform fixed operations on the original information. This allows you to store registration information in a batch file. When you run the software for the first time, you can run the batch file to register information.
Copy msado15.dll and msado60_Backcompat_i386 to the current directory.
Create a txt file, change the suffix to "Start Software. bat for the first time", and write the following statement in the batch file.
Ver | find/I "5.1" & goto: xp
Ver | find/I "6.1" & goto: win7
: Win7
Regsvr32 msado15.dll
Exit
: Xp
Regsvr32 msado60_Backcompat_i386.tlb
Exit
When the application runs for the first time, click the program to run the batch processing program to register the ado program.