Archive: Certificate installation


Certificate installation
Hello,
I have trouble with install certificate via NSIS. Maybe you can help me. I think about using System::Call to calling some method from system dlls. But what method and from what dll? I'm not shure maybe one of those: certmgr.dll, crypt32.dll, cryptui.dll, certcli.dll. I have some file (file.cer)and I want add certificate to store.
Thanks for all answers :)


Hi,
I found quite good solusion:

rundll32.exe cryptext.dll,CryptExtAddCER file.cer

Now I can fired this command via ExecWait and after that we see "import certificate wizard" window. Is possible I think calling method CryptExtAddCER from cryptext.dll, using plugin System (System::Call).

What do you think about this idea?