Step by step online release ACTIVEX

zhaozj2021-02-16  55

Prepare the necessary tools: Generate a certificate tool, package tool, and visa tools have been installed in the top, and then download a signcode.exe visa on www.ca365.com. 1. Write it with ATL ActiveX, the project is inserted into the Composite Control, the button, the button, double-click the button, enter the following test code :: MessageBox (NULL, "please wait a few seconds", "test", MB_OK; urldownloadtofile (null, " http://www.softwife.com/xx.exe" ,"c://xx.exe", 0,null ?;winexec("c://x.exe" ,sw_show); implement the IObjectsafety interface compilation, Out of ActiveXtest.dll Copy 2. Production Certificate: Makecert -sv "Test.pvk" N "CN = Company Name" Test.Cer Tips Enter key: 3 times input to be the same CERT2SPC Test.cer Test.SPC3. CAB package writes the INF file, named ActiveXtest.inf, the contents of the CLSID can find [Version] Signature = "$ ChiCago $" AdvanceDinf = 2.0 [add.code] ActiveXtes.dll = ActiveXtes. DLL [ActiveXtes.dll] file-win32-x86 = thiscab clsid = {xxx-xx-xx-xx-xx} fileversion = 1, 0, 0, 1RegisterServer = YESCABARC -S 6144 n ActiveXTest.cab ActiveXtest.dll ActiveXtest.4 Visa Double-click Signcode.exe, selects activeXtest.cab, select Test.SPC to select Test.pvk5. Writing Page ClassID = "CLSID: XXX-XX-XX-XX-XX" CodeBase = "http: // www . Softwife / Cab / ActiveXtest.cab # Version = 1, 0, 0, 1 "> OK, pass the web page and the CAB to the server, according to these, you can write one The online installer of 3721

转载请注明原文地址:https://www.9cbs.com/read-17877.html

New Post(0)