Recently I made a Unicom number queryProgramBecause it is an automatic query, You Need To screen the JS pop-up prompt box on the webpage page to avoid program suspension, So Microsoft mshtml is referenced. DLL assembly, after the program is released, it is found that it can only be installed on machines with the vs runtime environment, and machines without this environment will receive an error message indicating that the Microsoft mshtml assembly is missing and cannot be installed, after finding some information on the Internet and finally solving the problem, I will write down the process and share it with you:
Because Microsoft. mshtmal. DLL. This dll is from the mshtml In the System32 folder. TLB (com-type library file), so we only need to use the tlbimp.exe com-Type Library export tool that comes with vs2008 to export this TLB file again. Use the following script to export data:
Tlbimp mshtml. TLB/out: mshtml. dll
Finally, an mshtml is obtained. DLL Assembly file. mshtmal. replace DLL with mshtml. DLL, and then the DLL can be added to the installation project.
Specific Method: "Start" | "program" | "vs 2008" | "vs Tools" | "vs command prompt" input: tlbimp mshtml. TLB/out: c: \ windows \ system32 \ mshtml. DLL after running is complete, find: D: \ Program Files \ Microsoft Visual Studio 9.0 \ Vc \ mshtml in the disk area where vs is installed (my security is in D. DLL replaces the original program reference set Microsoft. mshtmal. DLL.
// Note: every time you reinstall the mshtml. dll system, you must use the above method to regenerate the mshtml. dll so that it can be deployed to the client without any problems.