Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions access-add-in/.gitattributes
Original file line number Diff line number Diff line change
@@ -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
6 changes: 0 additions & 6 deletions access-add-in/source/tables/USysRegInfo.txt

This file was deleted.

31 changes: 31 additions & 0 deletions access-add-in/source/tables/USysRegInfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0"?>
<dataroot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<USysRegInfo>
<Subkey>HKEY_CURRENT_ACCESS_PROFILE\Menu Add-Ins\ACLib AccUnit Loader</Subkey>
<Type>0</Type>
</USysRegInfo>
<USysRegInfo>
<Subkey>HKEY_CURRENT_ACCESS_PROFILE\Menu Add-Ins\ACLib AccUnit Loader</Subkey>
<Type>1</Type>
<ValName>Expression</ValName>
<Value>=StartApplication()</Value>
</USysRegInfo>
<USysRegInfo>
<Subkey>HKEY_CURRENT_ACCESS_PROFILE\Menu Add-Ins\ACLib AccUnit Loader</Subkey>
<Type>1</Type>
<ValName>Library</ValName>
<Value>|ACCDIR\AccUnitLoader.accda</Value>
</USysRegInfo>
<USysRegInfo>
<Subkey>HKEY_CURRENT_ACCESS_PROFILE\Menu Add-Ins\ACLib AccUnit Loader</Subkey>
<Type>4</Type>
<ValName>BitmapID</ValName>
<Value>339</Value>
</USysRegInfo>
<USysRegInfo>
<Subkey>HKEY_CURRENT_ACCESS_PROFILE\Menu Add-Ins\ACLib AccUnit Loader</Subkey>
<Type>4</Type>
<ValName>Version</ValName>
<Value>1</Value>
</USysRegInfo>
</dataroot>
2 changes: 1 addition & 1 deletion access-add-in/source/vcs-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"Format": "Tab Delimited"
},
"USysRegInfo": {
"Format": "Tab Delimited"
"Format": "XML Format"
},
"USysRibbons": {
"Format": "Tab Delimited"
Expand Down