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:
- The VBAuth reference is present in this database (VBE → Tools → References)
- The reference is not broken (the TLB file resolves on disk)
- (Bitness check — currently commented out; moved to the startup form)
VBAuth.GraphAuthenticatorcan be instantiated viaCreateObject
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 #
| Module | Purpose |
|---|---|
modVBAuthGlobalConstants.bas | Global 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