How To Install Certificates With An MSI Installation

Started by dhilipkumar, Sep 23, 2008, 07:18 PM

Previous topic - Next topic

dhilipkumar

If you have to install a .cer certificate with an msi installation, then you have to be aware of a few things:

With Wise Package Studio (WPS) go to the MSI Script tab and choose 'Execute Deferred'.
You have to include the certmgr.exe (download from Microsoft) in your package.
The command looks like this:
certmgr.exe -c YourCertificate -s Root -add

Be sure to change on the Properties tab the In-Script Option to 'Deferred Execution - User Context' otherwise the certificate will be imported into the Administrator account and will not be available to the user.

Finally, in the InstallExecuteSequence table set your Custom Actions Condition to 'NOT REMOVE~="ALL"' to ensure that your Custom Action will not be executed during an uninstallation.

Quick Reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it has been approved by a moderator.

Name:
Email:
Verification:
Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S post or ALT+P preview