Signing a Cabinet File During Day-to-Day Development

4/8/2010

If you are not using a Visual Studio 2008 Smart Device Cab project and you are building your cabinet file through some other mechanism, you should follow this procedure to sign your cabinet file.

To sign cabinet files built without using Visual Studio

  1. Make sure that the certificate you want to use is available in a pfx format file.

  2. Sign the binary files that will go into your cabinet file. For example:

    Signtool sign /f SDKSampleUnprivDeveloper.pfx *.exe *.dll
    
  3. Build your cabinet file with the signed binaries.

  4. Sign your cabinet file with the correct certificate. For example:

    Signtool sign /f SDKSampleUnprivDeveloper.pfx myApp.cab
    

Note

The Windows Mobile 6.5.3 DTK includes a tool called CabSignTool which allows cabinet files, and their contents, to be signed in one operation. If the SDK has been installed, the CabSignTool may be found in the default location: C:\Program Files\Windows Mobile 6.5.3 DTK\Tools\Security\CabSignTool.