Error instaling certificate - .pfx file

RRenu

New Member
#1
I am trying to install a certificate (.pfx) from a VB script on Vista. This script in turn is invoked by installshield.

iStoreLocation = CAPICOM_LOCAL_MACHINE_STORE
strStoreName = "ROOT"
Dim Store, OpenMode, KeyStorageFlag
OpenMode = CAPICOM_STORE_OPEN_MAXIMUM_ALLOWED OR CAPICOM_STORE_OPEN_EXISTING_ONLY
KeyStorageFlag = CAPICOM_KEY_STORAGE_DEFAULT
Set Store = CreateObject("CAPICOM.Store")
' Open the store.
Store.Open iStoreLocation, strStoreName, OpenMode

' Import the certificate(s) to the store.
Store.Load strCertificateFile, strPassword, KeyStorageFlag

I encounter with 'Access denied' message in 'Store.Load'

If "current user store" is used instead of "Local Machine store" installation succeeds.


Any info regarding this will be appreciated.

RR
 


U

Unregistered

Guest
#2
Does this help? QBS Software Limited- Install Shield
 


kemical

Windows Forum Admin
Staff member
Premium Supporter
#3
Have you tried 'Googling' for an answer? I did have a quick look for you but wasn't really sure what applied in your instance...
 


Celestra

Former Moderator
#4
:) Hi!!! I think this is what you may be looking for. Capicom Reference (Windows) msdnmicrosoft.com/en-us/library/aa375732(vs.85).aspx Here is a picture of something I found on the site for you. Oh Well, I can't get the link, you'll have to look it up--Sorry! Sincerely, Celestra
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.
Top