Silent certificate install to user's trusted root

Add-in Express™ Support Service
That's what is more important than anything else

Silent certificate install to user's trusted root
Is it possible to add a certificate to a user's trusted root store during installation silently without prompts 
Ian Holwill




Posts: 7
Joined: 2013-10-24
Hi,

Not specifically an Addin Express issue but a WIX issue - i thought someone here may have resolved. Has anyone succeeded in installing a certificate to the user's trusted root certificate store during installation WITHOUT PROMPTS. The following xml works but the user gets prompted with a confirm certificate dialog, this is behaviour i'd like to alter by removing that dialog.


<ComponentGroup Id="CertificateResources" Directory ="INSTALLFOLDER">
<Component Id="CertificateComponent" Guid="E4296C26-F2C9-404F=ABC3-BCAA6C5BB4F5">
<RegistryKey Root="HKCU" Key="Software\[Manufacturer]\[ProductName]\Cert">
<RegistryValue Type="integer" Name="Installed" Value="1" KeyPath="yes" />
</RegistryKey>
<iis:Certificate Id="Certificate" StoreName="root" Overwrite="yes" Name="Company Ltd" Request="no" BinaryKey="Certificate.cer" StoreLocation="currentUser" />
</Component>
</ComponentGroup>

many thanks,
IanH
Posted 13 Apr, 2014 05:31:08 Top
Nicholas Hebb


Guest


I admittedly don't know much about the certificate store, but is there a reason for installing to root? I install to StoreName="trustedPublisher" without any issues.
Posted 14 Apr, 2014 03:04:03 Top
Dmitry Kostochko


Add-in Express team


Posts: 2887
Joined: 2004-04-05
Hi Ian,

I have just found the following discussion on stackoverflow.com:
http://stackoverflow.com/questions/13478297/silently-install-root-certificate-in-wix

Hope this helps.
Posted 14 Apr, 2014 09:46:29 Top
Ian Holwill




Posts: 7
Joined: 2013-10-24
Many thanks to you both for the comments. It turns out that the install into the trustedPublisher store goes OK without prompts and my code seems to still work without any issues, so that seems to be the solution - thanks Nicholas.
Posted 15 Apr, 2014 05:05:01 Top