How can I silently install root certificates from WiX? I’m installing some root and intermediate certificates, and for root certificates the system displays confirmation dialog showing basic certificate properties and thumbprint. This is relevant code I have, using WixIIsExtension mapped in namespace iis:
<Binary Id="RootCa" SourceFile="Certificates\RootCa.cer" />
<DirectoryRef Id="TARGETDIR">
<Component Id="RootCa" Guid="...">
<iis:Certificate
Id="RootCa"
BinaryKey="RootCa"
Name="RootCa"
StoreLocation="currentUser"
StoreName="root"/>
</Component>
</DirectoryRef>
<Feature ...>
<ComponentRef Id="RootCa" />
</Feature>
Custom action that Sunil provided is equivalent to
Certificatecomponent with attributeStoreLocation="localMachine". In my case installing in machine store makes more sense anyway, so I’ll go with that. Original question still remains: how to silently install root certificate in user store. If someone has an answer to that question I’ll mark it as correct answer.