Skip to content

Fix empty USysRegInfo in released Access add-in - #110

Merged
josef-poetzl merged 3 commits into
devfrom
fix/loader-usysreginfo-xml
Nov 29, 2026
Merged

josef-poetzl merged 3 commits into
devfrom
fix/loader-usysreginfo-xml

Conversation

@josef-poetzl

@josef-poetzl josef-poetzl commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Problem

The AccUnitLoader.accda in the release zip (v0.11.0) has an empty USysRegInfo table, so the Access add-in manager cannot install the add-in.
The table data was exported as "Tab Delimited" (tables/USysRegInfo.txt), and the build with msaccess-vcs-build does not import it. The same issue was fixed in FilterFormWizard by switching to XML.

Root cause

  • The Office runner checks out the repository without git ("The repository will be downloaded using the GitHub REST API - add Git 2.18 or higher to the PATH"). The GitHub archive contains the files as stored in the repository, i.e. with LF line endings.
  • msaccess-vcs (clsDbTableData.ImportTableDataTDF) reads tab delimited table data with ADODB.Stream.ReadText(adReadLine) and the default line separator CRLF. An LF-only file is read as a single (header) line, so no rows are imported and no error is logged. tab1DS is empty in the v0.11.0 build as well.
  • The v0.10.0 build ran on a runner with git (CRLF checkout via core.autocrlf) and contains the data of both tables.

Changes

  • Export USysRegInfo table data in "XML Format" (tables/USysRegInfo.xml replaces tables/USysRegInfo.txt).
  • Release workflow: new step "Verify USysRegInfo" after "Verify usys_AppFiles". It prints the table and fails the build if Expression (=StartApplication()) or Library (|ACCDIR\AccUnitLoader.accda) is missing or wrong.
  • New access-add-in/.gitattributes: text eol=crlf for the msaccess-vcs source files (*.txt, *.bas, *.cls, *.xml, *.json, ...), so they get CRLF in a git checkout and in GitHub archive downloads. The files in the repository stay LF (no content diff).

Tests

  • YAML parses, the PowerShell script of the new step has no syntax errors.
  • git ls-files --eol access-add-in/source: all text files have attr/text eol=crlf.
  • GitHub zipball of 8de7d40: tables/tab1DS.txt, tables/USysRegInfo.xml and the modules have CRLF (before: LF only).
  • Not yet run in the workflow: the next release.yml run on the Office runner verifies the built add-in.

@josef-poetzl
josef-poetzl merged commit 61574ea into dev Nov 29, 2026
1 check passed
@josef-poetzl
josef-poetzl deleted the fix/loader-usysreginfo-xml branch November 29, 2026 23:12
@josef-poetzl josef-poetzl mentioned this pull request Nov 29, 2026
josef-poetzl added a commit that referenced this pull request Nov 29, 2026
…#111)

Fix empty USysRegInfo in released Access add-in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant