Setting up trust for access applications to be used on runtime target systems

Stephan Aal 0 Reputation points
2025-07-27T13:01:56.87+00:00

How do I set up trust for an access application that is going to be distributed to different users. At the moent runtime users can't use my application because there is no way of setting it up as a trusted application on their system.

Microsoft 365 and Office | Access | For business | Windows
0 comments No comments

4 answers

Sort by: Most helpful
  1. Nacif Boudlal 0 Reputation points
    2026-12-01T09:48:19.47+00:00

    Hi,

    The answer above is right that it goes through the registry; here are the exact keys, since the Runtime has no Trust Center screen.

    A trusted location is a per-user registry key under Access's security settings (16.0 for Access 2016, 2019, 2021, 2024 and Microsoft 365, Runtime included):

    HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Access\Security\Trusted Locations\MyApp

    Path            REG_SZ     C:\MyApp\          (the folder that holds the database)
    
    AllowSubfolders REG_DWORD  1                  (optional)
    
    Description     REG_SZ     My application      (optional)
    

    The subkey name (MyApp here) only has to be unique. Your installer (Inno Setup, the Package Solution wizard of older versions, a script) can write it when it copies the files; a .reg file or a one-line command works too:

    reg add "HKCU\Software\Microsoft\Office\16.0\Access\Security\Trusted Locations\MyApp" /v Path /t REG_SZ /d "C:\MyApp" /f

    Points that often trip people up:

    • It's per user (HKCU). Write it for each user who runs the application, for example from a logon script, or in a domain through Group Policy (the Access Trusted Locations settings in the Office administrative templates).
    • A network folder (\server\share) is ignored unless network locations are allowed: in the same Trusted Locations key, the DWORD AllowNetworkLocations = 1.
    • Put the front end in a local folder that users can write to: Access needs to create its lock file next to the database, and users usually can't write under Program Files.

    The Runtime page I wrote covers this and the other first-launch issues (no startup form, missing references, unhandled errors closing the app): https://auscult.nbit-tech.fr/en/free-access-runtime.html?utm_source=msqa&utm_medium=forum (disclosure: I make Auscult, the linked site).

    Was this answer helpful?

    0 comments No comments

  2. Anonymous
    2025-07-28T00:01:23.61+00:00

    Dear @Stephan Aal

    Thank you so much for contacting Microsoft Q&A Forum. 

    Based on your description, it sounds like your Microsoft Access application using the Access Runtime, you need to ensure the application is located in a trusted location. Since runtime users can't access the Trust Center UI, this must be done via the Windows Registry. Access Runtime disables macros and VBA unless the database is in a trusted location. Without this, users will see security warnings, or the application may not function properly. Therefore, I recommend that you should manually or programmatically add a trusted location using the Windows Registry.  

    Kindly notes:  

    • Use the appropriate registry path depending on the version of Office installed. 
    • Machine-Wide Setup (Optional): if you want this to apply to all users on a machine, use HKEY_LOCAL_MACHINE instead of HKEY_CURRENT_USER. 

    Also, I have found several scenarios that have partially similar to your case and you can consult in there:

    I hope this information can help you to finish this work. 

    Wish you a pleasant day!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

    User's image

    Was this answer helpful?


  3. DBG 11,801 Reputation points Volunteer Moderator
    2025-07-27T15:36:46.4366667+00:00

    Just curious, do your users not get a warning dialog box about your app with a button to open it or cancel? What do they actually see? Does the app just quits or do they get a warning box with just an ok button on it?

    Was this answer helpful?

    0 comments No comments

  4. Duane Hookom 27,035 Reputation points Volunteer Moderator
    2025-07-27T15:12:17.0133333+00:00

    I had used a vbscript file that altered setting in the USER registry. Typically, users have the right to update USER settings. The vbscript file was part of a batch file that altered the registry, created the application directory, copied the latest app file, and then opened it. The below code is quite old and matched earlier versions of MS Office.

    I wasn't allowed to post the code but it can be found at Tek-Tips FAQ. The [color] tags on the page aren't rendering correctly so you would need to delete all of them. Also, the "SNOW" referred to a standard operating system used at a previous client.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.