Recently, I am working on a material accounting software and finally finished preparing to submit to the user. During the first installation, I extracted the VB Runtime Library and installed and run properly in the testing environment, later I found an error in the printed area. not compatible with DLL after modification. an error occurred while creating the package. it is correct in the development environment. later, you just need to manually register the DLL with regsvr32. inno Setup was not registered during installation. After checking the help, we found that it can be implemented. and then re-Modify the installation script as follows:
; Regsvr32 registers gridprint. dll
; Source: "F:/mywork/dependencies/gridprint. dll"; destdir: "{sys}"; flags: ignoreversion
Source: "F:/mywork/dependencies/gridprint. dll"; destdir: "{sys}"; flags: restartreplace sharedfile regserver
Summary: VB must be compatible with the original control during dll/OCX compilation.