- Thread Author
- #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
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
- Joined
- Aug 28, 2007
- Messages
- 36,160
Celestra
Former Moderator
- Joined
- Jan 15, 2008
- Messages
- 2,448