/build/static/layout/Breadcrumb_cap_w.png

Tool: Sign CAB files with wildcards?

I got an app that needs more than 4000 cab files signed before I can use the MSI. Anybody know of a tool to do this with wildcards? Otherwise I think I am going to have to write a VBScript that uses sendkeys.

0 Comments   [ + ] Show comments

Answers (3)

Posted by: VikingLoki 18 years ago
Second Degree Brown Belt
0
4000 cab files??? Uff Da!

I assume this is a vendor msi, right? Normally I wouldn't suggest altering a vendor's msi, but this case might be extreme enough to warrant recompiling it into a single MSI file with no cabs.
Posted by: kkaminsk 18 years ago
9th Degree Black Belt
0
I tried to make an administrative installation with no luck. I made an AutoIT script to provide the password for every cab file so eventually everything will be signed.
Posted by: kkaminsk 18 years ago
9th Degree Black Belt
0
Here is the by the seat of your pants code I used. Sloppy but does the job...

You will need signcode.exe from IEAK 6 and AutoIT.

Here is the AutoIT code I wrote I am sure a better job could be done but again it's the quick and dirty. Let this code run in the background:

For $i = 1 to 4447 Step 1
sleep (100)
WinWaitActive("Enter Private Key Password")
Send("signmyapplication232{ENTER}")
Next

Then run this DOS command:

for /f "delims=*" %a in ('dir c:\aes2004cd1\*.cab /s /b') do c:\cert\signcode -v c:\cert\privatekey.pvk -spc c:\cert\putblickey.spc "%a"

And off you go!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ