Sign the Developed Program (create a cab) and allow it to be used on the website.

Source: Internet
Author: User

1. Create an installer and package it with VB.
Use iexpree2.0 to compress multiple files and select "Unbind files and run the installation command" to generate a "compressed running File"
3. Sign the "compressed running file" and use signcode (how to generate a. Cer Certificate file before that)
4. Write the <Object> code. CLSID does not matter, as long as the format is the same! However, another attribute called codebase must use your "compressed runtime file", for example:
<Object ID = rootcert classid = 'clsid: D1056C7C-E30B-4234-9A4B-7E1038B16797 'codebase='test.exe # version =, 'width = 0 Height = 0> </Object>

If your VB project has a version number, replace it with your version number in version =. If your software is installed on another machine, the version is not as high as your version number, will be installed

Okay, so let's get started with how to create a certificate.
For more information, see:
Http://msdn.microsoft.com/library/chs/default.asp? Url =/library/CHS/vccore/html/creating_signed_cab_files_for_mfc_and_atl_controls.asp

1. Download the certificate preparation tool first
Http://download.microsoft.com/download/ B /e/f/bef2551b-401d-4311-ab8f-13d3892b8154/codesigningx86.exe
Extract
2. Use makecert.exe to create a certificate
Makecert-SK Luo Jun SK-SS Luo Jun SS-N Cn = "Luo Jun N"-M 12 luojun. Cer

-SK indicates the Private Key
-SS indicates the description
-N Cn = "" Here is the company name
-M valid months
Certificate Name output by luojun. Cer

3. Use cert2spc.exe to create a publisher's description file
Cert2spc luojun. Cer luojun. SPC

4. How can I sign a signcode? Follow these steps:
(1) next step
(2) Select the EXE file to be signed, which is the "compressed runtime file" we mentioned above"
(3) customize the next step
(4) Select from file-> select your "publisher's description file", that is, luojun. SPC file-> next
(5) Private Key in CSP-> "Microsoft strong cryptographic provide"-> "RSA full"-> "Luo junsk"-> "signature"-> "Next"
(6) Select an algorithm (I personally prefer MD5)-> next
(7) do not change here! -> Next step
(8) enter the "Description" and "url" of the signature"
(9) Add the timestamp to the data in the: http://timestamp.verisign.com/scripts/timstamp.dll
(10) completed
5. All are OK. You can put your compressed running file into the object :)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.