Error instaling certificate - .pfx file

Discussion in 'Windows Vista Installation' started by RRenu, May 5, 2008.

  1. RRenu

    RRenu New Member

    Joined:
    May 4, 2008
    Messages:
    2
    Likes Received:
    0
    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
     
  2. Does this help? QBS Software Limited- Install Shield
     
  3. kemical

    kemical Windows Forum Admin
    Staff Member Premium Supporter Microsoft MVP

    Joined:
    Aug 28, 2007
    Messages:
    31,790
    Likes Received:
    1,563
    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...
     
  4. Celestra

    Celestra Former Moderator

    Joined:
    Jan 15, 2008
    Messages:
    2,468
    Likes Received:
    14
    :) 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
     

Share This Page

Loading...