I am installing my application in a fully offline environment. Our machines will be completely incapable of connecting to the internet during production scenarios.
I am writing a WiX Burn custom bootstrapper, and part of the reason was to install a Microsoft root certificate required for .NET 4.7.2 to install properly on Windows versions earlier than 8.1. My original plan was to use the .NET certificate namespace to do this, but aside from the warning that popped up saying not to, I realized that Burn runs at the current user's elevation level, which means that it would likely fail to install the certificate without acquiring elevated privileges first.
According to a Microsoft document regarding installing certificates for Visual Studio, the preferred way of doing this is to bundle a copy of of certmgr.exe with your program and call it to add the certificate to the root store.
Is it best practice or even possible at all to do this using an ExePackage
element? As in, setting the element to call certmgr, set InstallCommand
to /add MicRooCerAut2011_2011_03_22.cer /s /r localMachine root
, PerMachine
to True
and let it rip? Or does ExePackage
have some kind of special behavior?