RRenu

New Member
Joined
May 4, 2008
Messages
2
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
Does this help? QBS Software Limited- Install Shield
 

kemical

Essential Member
Joined
Aug 28, 2007
Messages
36,176
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
Joined
Jan 15, 2008
Messages
2,448
:) Hi!!! I think this is what you may be looking for. Capicom Reference (Windows) Link Removed due to 404 Error 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