README Startup v2

VBAuth — Startup Checks #

v2, for VBAuth 1.0.0.3

Purpose #

Provides two functions called during database startup to verify that VBAuth is correctly installed and that first-run setup has been completed. Both are called from frmSetupWizard.Form_Load; they are not called from any feature tab.


Functions #

CheckVBAuthInstallation() As Boolean #

Validates that VBAuth.dll is correctly installed and usable. Performs four checks in sequence, displaying a descriptive error MsgBox and returning False on the first failure:

  1. The VBAuth reference is present in this database (VBE → Tools → References)
  2. The reference is not broken (the TLB file resolves on disk)
  3. (Bitness check — currently commented out; moved to the startup form)
  4. VBAuth.GraphAuthenticator can be instantiated via CreateObject

If check 4 fails, the error message includes the exact RegAsm.exe command needed to re-register the DLL for the correct bitness (32-bit or 64-bit).

Returns True only if all active checks pass.


VBAuthDLLPath() As String #

Returns the full path the installer puts VBAuth.dll at,


VBAuthDLLIsInstalled() As Boolean #

Validates the DLL is on disk where the installer puts it.


IsSetupRequired() As Boolean #

Returns True if AppID=1 (Who Am I) is missing ClientID or TenantID in lclVBAuthAdmin, indicating that the Setup Wizard has not been completed. Also returns True on any database error, so the wizard is shown rather than silently skipped if the table is inaccessible.

Used by frmSetupWizard.Form_Load to decide whether to display the setup page or skip directly to the completion page.


Dependencies #

ModulePurpose
modVBAuthGlobalConstants.basGlobal constants and lclVBAuthAdmin table access

No Graph API calls are made by this module.


VBAuth, developed and maintained by Andrew Richards (The IT Service Ltd) and Peter Bryant (Corylus Business Systems), © 2025–2026. All rights reserved. https://vbauth.com

Updated on September 11, 2026