Signing a CAB File

To sign a CAB file using the Code Signing Wizard:

  1. Run the SIGNCODE utility (available in the CAB&SIGN directory on the Visual C++ CD) to launch the Code Signing Wizard.

    C:\CAB&SIGN\SIGNCODE
    
  2. In the Code Signing Wizard dialog box, click Next to advance to the next page.

  3. In the Which program would you like to sign? edit box, enter the name of the CAB file you want to sign.

  4. In the What would you like to call this program? edit box, enter the name as you want it to appear on the certificate.

  5. Click Next to advance to the next page.

  6. In the Under which Software Publishing Credentials would you like to sign this program? edit box, enter the name of the Software Publisher Certificate (SPC) file.

  7. In the Where can you find the secret, private key that goes with these credentials? edit box, enter the name of the private key (PVK) file.

  8. Click Next twice to advance to the last page.

  9. Click Sign to sign the CAB file. Your file will be digitally signed.

You can sign your DLLs and OCXs directly, without using a CAB file. The advantages of a CAB file are compression and, if used with an INF file, the bundling of all necessary code together.