Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. Creating an Access Add-In that can be used by all users - "Connect" error

Creating an Access Add-In that can be used by all users - "Connect" error

Scheduled Pinned Locked Moved COM
csharpcomtoolshelp
1 Posts 1 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lmaycock
    wrote on last edited by
    #1

    I'm having trouble getting an Access plugin working for all users. The setup application installs/registers the dll and associated tlb file absolutely fine (installed for all users) and my VBA code (below) also works successfully when logged in as an administrator, but attempting to use it under a non-privileged user account fails here:

    Private Sub Form_Load()
    With COMAddIns("MyPlugIn.Connect")
    ' Make sure the COM add-in is loaded.
    .Connect = True ' <---- Fails here

        ' Hook up the desired objects.
        .Object.HookupControls cmdUploadImage
    End With
    

    End Sub

    The returned error is: This add-in is installed for all users on this computer and can only be connected or disconnected by an administrator. Is there any way to prevent this? Some additional information: - The dll/tbl and setup application are all created in C# (.net 3.5) - The target machine is virtualised, so any user could potentially log into it (thus installing the plugin for the active user isn't an option... though if there's a way to silently install the file in a user login script that might work?) Thanks in advance... though I'm more hopeful than expectant! :(

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups