Archive: installing certificates


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 baybe one of those: certmgr.dll, crypt32.dll, cryptui.dll, certcli.dll.
Thanks for all answers


Hello, this is function in crypt32.dll:

PCCERT_CONTEXT WINAPI CertFindCertificateInStore(
HCERTSTORE hCertStore,
DWORD dwCertEncodingType,
DWORD dwFindFlags,
DWORD dwFindType,
const void* pvFindPara,
PCCERT_CONTEXT pPrevCertContext
);

How to call this fonction in System.Call?
Full CertFindCertificateInStore definition:
http://msdn.microsoft.com/library/de..._functions.asp

Thanks


The System plug-in readme explains throughly how to call API functions. Figuring out the parameters to pass is up to you.