I have an msi that I created with WiX. I have no need to create a chain bundle, but I do need the ability to have the user right-click on the installer and choose "Run as administrator". You can't do that with an MSI in Windows, only with EXE's.
Is there a way to create a bootstrapper exe that has no UI of its own that will just kick off my msi?
Here's why I think need to do this (in case there's another solution out there):
My WiX installer installs a certificate using the following code:
<iis:Certificate Id="ClientCert"
Name="MyClientCert"
StoreName="personal"
StoreLocation="localMachine"
Request="no"
Overwrite="yes"
BinaryKey="ClientCertBinary"
PFXPassword="mypassword"/>
When I run this on some computers while log in as admin, the certificate installs fine. But when I run it on some other computers, also while logged into an admin account, the install fails with the following error:
InstallCertificates: Error 0x80090010: Failed to open PFX file.
InstallCertificates: Error 0x80090010: Failed to get SHA1 hash of certificate.
InstallCertificates: Error 0x80090010: Failed to resolve certificate: MyClientCert
I read on another post that the UAC sometimes behaves differently in regards to this. The person recommended right-clicking and picking "Run as administrator". I tried this by opening a command window as admin and running the msi and it worked like a charm. But opening a command window is not an option for when we release the msi to our customers. Hence the need for an exe bootstrapper.