We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

digisign.exe error. Signing file. HRESULT: -2146893816. Erro

Hi,

I am getting the following error
[ TELES_BUILD ]
Creating MSI database (en)... The digital signing of the C:\Program Files\Caphyon\Advanced Installer 10.7\custact\x86\aipackagechainer.exe file failed. Error Message:Certificate: Subject[TELES FMC+C Innovations GmbH] Issuer[COMODO Code Signing CA 2]
digisign.exe error. Signing file. HRESULT: -2146893816. Error message: Invalid algorithm specified.
digisign.exe sign /sha1 0f71ff7da3d9d5ba65e1e10e438ab8a968c3588c /t http://timestamp.verisign.com/scripts/timstamp.dll

Build finished because an error was encountered.


Any help is appreciated.
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: digisign.exe error. Signing file. HRESULT: -2146893816.

I have just changed the signing tool to C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\SignTool.exe, and it started working :-)
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: digisign.exe error. Signing file. HRESULT: -2146893816.

Hi Rohan,

You can take a look on the Message:SignTool Error: Invalid options: /fd thread which details the same problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: digisign.exe error. Signing file. HRESULT: -2146893816.

Thanks.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: digisign.exe error. Signing file. HRESULT: -2146893816.

You're welcome.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kid1519
Posts: 10
Joined: Tue Feb 11, 2014 7:18 am

Re: digisign.exe error. Signing file. HRESULT: -2146893816.

Hello my friends.
I want use digisign.exe for sign files.
my idea: create a tool like this picture:
https://fbcdn-sphotos-g-a.akamaihd.net/ ... 8648_n.jpg
this tool will sign all files.
Can you help me? Or can you share your source?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: digisign.exe error. Signing file. HRESULT: -2146893816.

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm afraid I don't fully understand what you are trying to achieve. Can you please give us more details about this (maybe exemplify)? Do you need to sign your installation files using Advanced Installer?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kid1519
Posts: 10
Joined: Tue Feb 11, 2014 7:18 am

Re: digisign.exe error. Signing file. HRESULT: -2146893816.

Daniel wrote:Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm afraid I don't fully understand what you are trying to achieve. Can you please give us more details about this (maybe exemplify)? Do you need to sign your installation files using Advanced Installer?

All the best,
Daniel
Oh, sorry for late reply.
At our Advanced Installer - digital signatures: It is perfect and useful:
https://scontent-a-lax.xx.fbcdn.net/hph ... 5368_n.jpg
But sometimes, we don't use Advanced Installer for sign a file, therefore, i want write a tool like this picture:
https://fbcdn-sphotos-c-a.akamaihd.net/ ... 3160_n.jpg
Add files then sign them with digisign.exe...
Open source project, can you send me?
Thank alot
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: digisign.exe error. Signing file. HRESULT: -2146893816.

Hello,

I'm afraid we cannot share our application development source files, as they are private.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kid1519
Posts: 10
Joined: Tue Feb 11, 2014 7:18 am

Re: digisign.exe error. Signing file. HRESULT: -2146893816.

Daniel wrote:Hello,

I'm afraid we cannot share our application development source files, as they are private.

Thank you for your understanding.

All the best,
Daniel
Don't worry my friend
No proplem, i am giong to create it via Delphi.
And, can you tell me: "Description URL":

Code: Select all

This field contains an URL for a complete description of the signed content. The URL will be used when the package is launched from an untrusted location (for example from the network) in the "Open File - Security Warning" dialog, where the "Name" field will become a link to the URL you specified.
Althought, i fill Description and Description URL before sign. But i only see Description like product name when UAC dialog appear. Description URL, i can't see it. Where is it???
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: digisign.exe error. Signing file. HRESULT: -2146893816.

Hello,

As our documentation states the URL added in the "Description URL" field will be used only when the package is launched from an untrusted location (for example from a shared network location) in the "Open File - Security Warning" dialog, where the "Name" field will point to a link to the URL you specified.
Open File -Security Warning.png
Open File -Security Warning.png (17.48 KiB) Viewed 14518 times
For testing purposes you can copy your setup package on a shared network location and launch it from there.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kid1519
Posts: 10
Joined: Tue Feb 11, 2014 7:18 am

Re: digisign.exe error. Signing file. HRESULT: -2146893816.

Daniel wrote:Hello,

As our documentation states the URL added in the "Description URL" field will be used only when the package is launched from an untrusted location (for example from a shared network location) in the "Open File - Security Warning" dialog, where the "Name" field will point to a link to the URL you specified.
Open File -Security Warning.png
For testing purposes you can copy your setup package on a shared network location and launch it from there.

If you have any questions let us know.

All the best,
Daniel
Yeah my friend, I understand. This answers is perfect and usefull. I understood immediately when I saw the photo.
My friend:
At my area - asia, all personal can't buy a code signing. Only Business is possible.
Therefore, At my Diploma Project (graduation thesis): I need sign a .exe file (of course, I create/write .exe file by a language). I will stand in front of the crowd and my teachers, I will talk and use it - exe file. There is a large television will connect to laptop. everyone will be watching television...blah blah... Run our .exe file -> UAC dialog -> blah blah....
my Diploma Project (graduation thesis): "importance of digital signature"
Therefore, Can you sign my .exe?
I only use .exe for Diploma Project (graduation thesis), then we will delete it.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: digisign.exe error. Signing file. HRESULT: -2146893816.

Hello,

Unfortunately, we cannot sign your EXE file using our digital signature certificates. However, for testing purposes you can create a test certificate which can be used to sign your EXE file. Please take a look on the "How to: Create Your Own Test Certificate" article which should be useful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kid1519
Posts: 10
Joined: Tue Feb 11, 2014 7:18 am

Re: digisign.exe error. Signing file. HRESULT: -2146893816.

Daniel wrote:Hello,

Unfortunately, we cannot sign your EXE file using our digital signature certificates. However, for testing purposes you can create a test certificate which can be used to sign your EXE file. Please take a look on the "How to: Create Your Own Test Certificate" article which should be useful for you.

All the best,
Daniel
Dear Daniel,
Thank you so much. This is useful guide for me.
But At my Diploma Project (graduation thesis) - we will use a another computer (different computer). This computer isn't mine. I can't add my Certificate to store (my .pfx is unrecognized). Therefore, First run .exe -> UAC dialog has notification: unknown publisher
Okay, can you answer me a question?
where providing Certificate trial???
Because i only need 1 day for trial. After my Diploma Project (graduation thesis) complete, I don't need it.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: digisign.exe error. Signing file. HRESULT: -2146893816.

Hello,

You can try to acquire a trial certificate from different providers like VeriSign, Comodo, Thawte, etc. For more details about how you can get a trial certificate you can contact their support teams.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”