From 4cdc0f42c50f445736ac01d7e10dc8ea688e1909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20P=C3=B6tzl?= Date: Sun, 29 Nov 2026 23:55:51 +0100 Subject: [PATCH 1/3] Export USysRegInfo as XML to keep its data in add-in builds --- access-add-in/source/tables/USysRegInfo.txt | 6 ---- access-add-in/source/tables/USysRegInfo.xml | 31 +++++++++++++++++++++ access-add-in/source/vcs-options.json | 2 +- 3 files changed, 32 insertions(+), 7 deletions(-) delete mode 100644 access-add-in/source/tables/USysRegInfo.txt create mode 100644 access-add-in/source/tables/USysRegInfo.xml diff --git a/access-add-in/source/tables/USysRegInfo.txt b/access-add-in/source/tables/USysRegInfo.txt deleted file mode 100644 index 9ab68c2..0000000 --- a/access-add-in/source/tables/USysRegInfo.txt +++ /dev/null @@ -1,6 +0,0 @@ -Subkey Type ValName Value -HKEY_CURRENT_ACCESS_PROFILE\\Menu Add-Ins\\ACLib AccUnit Loader 0 -HKEY_CURRENT_ACCESS_PROFILE\\Menu Add-Ins\\ACLib AccUnit Loader 1 Expression =StartApplication() -HKEY_CURRENT_ACCESS_PROFILE\\Menu Add-Ins\\ACLib AccUnit Loader 1 Library |ACCDIR\\AccUnitLoader.accda -HKEY_CURRENT_ACCESS_PROFILE\\Menu Add-Ins\\ACLib AccUnit Loader 4 BitmapID 339 -HKEY_CURRENT_ACCESS_PROFILE\\Menu Add-Ins\\ACLib AccUnit Loader 4 Version 1 diff --git a/access-add-in/source/tables/USysRegInfo.xml b/access-add-in/source/tables/USysRegInfo.xml new file mode 100644 index 0000000..12dcedf --- /dev/null +++ b/access-add-in/source/tables/USysRegInfo.xml @@ -0,0 +1,31 @@ + + + + HKEY_CURRENT_ACCESS_PROFILE\Menu Add-Ins\ACLib AccUnit Loader + 0 + + + HKEY_CURRENT_ACCESS_PROFILE\Menu Add-Ins\ACLib AccUnit Loader + 1 + Expression + =StartApplication() + + + HKEY_CURRENT_ACCESS_PROFILE\Menu Add-Ins\ACLib AccUnit Loader + 1 + Library + |ACCDIR\AccUnitLoader.accda + + + HKEY_CURRENT_ACCESS_PROFILE\Menu Add-Ins\ACLib AccUnit Loader + 4 + BitmapID + 339 + + + HKEY_CURRENT_ACCESS_PROFILE\Menu Add-Ins\ACLib AccUnit Loader + 4 + Version + 1 + + diff --git a/access-add-in/source/vcs-options.json b/access-add-in/source/vcs-options.json index 6489a71..1ef66b4 100644 --- a/access-add-in/source/vcs-options.json +++ b/access-add-in/source/vcs-options.json @@ -60,7 +60,7 @@ "Format": "Tab Delimited" }, "USysRegInfo": { - "Format": "Tab Delimited" + "Format": "XML Format" }, "USysRibbons": { "Format": "Tab Delimited" From 1c45f6a1bc4ba0db5724c49c8fd642a2f3b9aef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20P=C3=B6tzl?= Date: Sun, 29 Nov 2026 23:56:14 +0100 Subject: [PATCH 2/3] Verify USysRegInfo entries in Access add-in release build --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5466369..af7ee91 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -137,6 +137,36 @@ jobs: $missingIds = @($expectedIds | Where-Object { $foundIds -notcontains $_ }) if ($missingIds.Count -gt 0) { throw "Missing in usys_AppFiles: $($missingIds -join ', ')" } + - name: "Verify USysRegInfo" + shell: pwsh + run: | + # Without these entries the Access add-in manager cannot install the add-in + $expectedValues = [ordered]@{ + 'Expression' = '=StartApplication()' + 'Library' = '|ACCDIR\AccUnitLoader.accda' + } + $addInFile = Join-Path $env:OUT_DIR 'AccUnitLoader.accda' + $access = New-Object -ComObject Access.Application + try { + $db = $access.DBEngine.OpenDatabase($addInFile, $false, $true) + $rs = $db.OpenRecordset('SELECT Subkey, Type, ValName, Value FROM USysRegInfo') + $foundValues = @{} + while (-not $rs.EOF) { + Write-Host "$($rs.Fields.Item('Subkey').Value) $($rs.Fields.Item('Type').Value) $($rs.Fields.Item('ValName').Value) $($rs.Fields.Item('Value').Value)" + $valName = [string]$rs.Fields.Item('ValName').Value + if ($valName) { $foundValues[$valName] = [string]$rs.Fields.Item('Value').Value } + $rs.MoveNext() + } + $rs.Close() + $db.Close() + } + finally { + $access.Quit() + [void][System.Runtime.InteropServices.Marshal]::ReleaseComObject($access) + } + $wrongEntries = @($expectedValues.Keys | Where-Object { $foundValues[$_] -ne $expectedValues[$_] }) + if ($wrongEntries.Count -gt 0) { throw "Missing or wrong in USysRegInfo: $($wrongEntries -join ', ')" } + - name: "Create add-in zip" id: zip shell: pwsh From 8de7d40a99eda53bc4d17bb9f29fe683d000d8c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20P=C3=B6tzl?= Date: Mon, 30 Nov 2026 00:08:17 +0100 Subject: [PATCH 3/3] Enforce CRLF for Access add-in source files --- access-add-in/.gitattributes | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 access-add-in/.gitattributes diff --git a/access-add-in/.gitattributes b/access-add-in/.gitattributes new file mode 100644 index 0000000..1fd4114 --- /dev/null +++ b/access-add-in/.gitattributes @@ -0,0 +1,13 @@ +# Ensure CRLF for msaccess-vcs source files, also in GitHub archive downloads +# (actions/checkout without git). Tab delimited table data is read line by line +# with CRLF as separator, LF-only files are imported as empty tables. +source/**/*.txt text eol=crlf +source/**/*.bas text eol=crlf +source/**/*.cls text eol=crlf +source/**/*.xml text eol=crlf +source/**/*.json text eol=crlf +source/**/*.sql text eol=crlf +source/**/*.form text eol=crlf +source/**/*.report text eol=crlf +source/**/*.qdef text eol=crlf +source/**/*.macro text eol=crlf