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)
Please log in to answer
Posted by:
VikingLoki
18 years ago
Posted by:
kkaminsk
18 years ago
Posted by:
kkaminsk
18 years ago
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!
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.
so that the conversation will remain readable.