Is there a way to install a certificate? - Advanced Installer Community
wyin
Posts: 9
Joined: Thu Sep 24, 2009 9:05 pm

Is there a way to install a certificate?

I created a dialog that asks for the certificate file location. I would then like to have it install the certificate into a keystore. Is there any built in methods in Advanced Installer to do this? Can you recommend the best way to accomplish this?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Is there a way to install a certificate?

Hello,

I am afraid Windows Installer does not directly support this feature. You can however use the certutil.exe command line tool to achieve this. Simply add this tool and its dependencies in your Advanced Installer project, then use the "EXE with Working Dir" Custom Action to launch it with the proper command line arguments so that it installs your certificate.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
richard123
Posts: 1
Joined: Fri Dec 18, 2015 9:31 am

Re: Is there a way to install a certificate?

I am trying to install a certificate with certutil.exe but I'm stuck. Help!

These are the settings I'm using: http://screencast.com/t/IIng5cTDN

And this is the error from the log file:
Action 18:23:03: certutil.exe_1.
MSI (s) (68:C8) [18:23:03:701]: Executing op: CustomActionSchedule(Action=certutil.exe_1,ActionType=3074,Source=BinaryData,Target=-f -addstore MY C:\Program Files (x86)\Zurili Limited\Zurili Jabra Service\jabra_ssl.cer,)
CustomAction certutil.exe_1 returned actual error code 1 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (68:C8) [18:23:03:791]: Note: 1: 1722 2: certutil.exe_1 3: C:\WINDOWS\Installer\MSI8273.tmp 4: -f -addstore MY C:\Program Files (x86)\Zurili Limited\Zurili Jabra Service\jabra_ssl.cer
Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action certutil.exe_1, location: C:\WINDOWS\Installer\MSI8273.tmp, command: -f -addstore MY C:\Program Files (x86)\Zurili Limited\Zurili Jabra Service\jabra_ssl.cer
MSI (s) (68:C8) [18:23:05:095]: Product: Zurili Jabra Service -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action certutil.exe_1, location: C:\WINDOWS\Installer\MSI8273.tmp, command: -f -addstore MY C:\Program Files (x86)\Zurili Limited\Zurili Jabra Service\jabra_ssl.cer

Action ended 18:23:05: InstallExecute. Return value 3.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Is there a way to install a certificate?

Hello and welcome to our forums,

In the "Command Line" field, can you please enclose between quotes the "[#jabra_ssl.cer]" formatted reference, rebuild the project and test it again? Also, can you please uncheck the "Run under the LocalSystem account with full privileges (no impersonation)" execution option for your custom action and see if this is useful too?

Let us know if this helped.

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

Return to “Common Problems”