ActiveX automatic upgrade function running in the browser
(http://blog.9cbs.net/wqf2)
Nowadays, some of our company's application products have the needs of B / S, and ActiveX has been the most convenient bridge for our C / S transition to B / S. The biggest benefit of B / S is to be deployed without the need to run the installer. In our traditional C / S client, the model used by the automatic upgrade feature is: the server runs an automatic upgrade service program, the client connection This service is determined by the version, download the upgrade. Now that the B / S structure is upgraded, an ActiveX control also uses this mode, it is a bit small matter. I want to talk about my ActiveX automatic upgrade function. First, the ActiveX controls and dependencies are packet into the CAB package. The tool I use is the production of CAB tools in Visual Studio .NET 2003. The XML file of the file OSD will be made in the generated CAB package. This file describes the names, packages of the package, and component information. The version of the package is the comparative condition for us later. Before generating a package, we can use Visual Studio.net 2003 to set this version. Then, write the HTML file calling ActiveX, call as follows: