PDA

View Full Version : Help needed with codesign util



NewsArchive
04-14-2015, 02:01 AM
Hi all,

Can somebody help me with scripting the following util with SB 8.5?:

MyCodeSignUtil.exe <par1> <par2>

where par1 = Descriptive Name
where par2 = File Name (for example: MyApp.exe or *.exe or *.dll etc.)

So that I can run:
MyCodeSignUtil.exe "This is a long description" "This is my App.exe"
or:
MyCodeSignUtil.exe ShortDesc *.dll
etc.

I know that I can use the #code-sign application directive, but I don't
want to compile my SB script every time that I want to codesign my files.

Is that possible?

--
Best regards,
Jeffrey

NewsArchive
04-14-2015, 02:01 AM
Use the #codesign function and check the skip box. If the program is
already code signed, nothing happens. That way, you don't have to
compile it every time, only newly compiled items get code signed.

--

Russ Eggen
RADFusion International, LLC

NewsArchive
04-14-2015, 02:01 AM
Well, that's not what I mean or want. ;-)

At this moment I sometimes also use my batchfile with:

signtool sign /f MyCertificateFile.pfx /p MyPassword /t
http://timestamp.comodoca.com/authenticode /d "File Description" *.dll

I want to replace my batchfile with a SB util-exe, but I think it's not
possible because the #codesign function only runs when compiling the
script in SB?

Best regards,
Jeffrey

NewsArchive
04-14-2015, 02:02 AM
Yes, that is a compiler directive.

--

Russ Eggen
RADFusion International, LLC

NewsArchive
04-14-2015, 02:02 AM
Ah, that's what I already thought (when I was typing my question), but
thanks anyway!

Best regards,
Jeffrey

NewsArchive
04-14-2015, 02:03 AM
Hi Jeffrey,

Just create a "dummy" script and let the compiler do the dirty work for you.
I am using this to code-sign the DLLs and some utilities (see attached
screenshot).

Friedrich

NewsArchive
04-14-2015, 09:21 AM
Hi Friedrich,

Thanks!

Best regards,
Jeffrey

NewsArchive
04-14-2015, 09:22 AM
Friedrich,

> Just create a "dummy" script and let the compiler do the dirty work for you.
> I am using this to code-sign the DLLs and some utilities (see attached
> screenshot).

You could save a lot of effort by using wildcards with #code-sign. The
guy that wrote SetupBuilder is smart and made it handy that way!<g>

Lee White

NewsArchive
04-14-2015, 09:22 AM
Lee,

> You could save a lot of effort by using wildcards with #code-sign. The
> guy that wrote SetupBuilder is smart and made it handy that way!<g>

LOL. Yes, I agree <g>

Friedrich