Programmatically checking if cab files are signed RRS feed

  • Question

  • Hi,


    We have a lot of cab files that are continuously maintained and re-deployed to our client. Making sure that the relevant cabs have been signed can become a tedious task. I would like to write a small application that will list all the cabs in a specified folder, and indicate whether they are signed or not. How can I programmatically check if a cab was signed or not?


    Thanks in advance,


    Friday, April 13, 2007 9:07 AM


  • CorneVR,


    1. The System.IO.Directory.GetFiles("path","cab") method can help you to list all the cabs in a specified folder.


    2. A .cab file can be signed when it is created by means of Authenticode tools. Authenticode provides a development toolkit with a suite of applications that sign and verify the signature on a .cab file.


    Please take a look at the following link:





    Thursday, April 19, 2007 5:39 AM