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
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ Applies to standard modules (`.bas`), class modules and code-behind (`.cls`), an
- Do not restructure existing code unasked. In code you touch for another reason, apply these rules to the new and changed parts; report further findings instead of fixing them.

## Project specifics
- Access add-in "DBMS Connection Wizard": configures a DBMS connection and imports the
- Access add-in "ACLib DBMS Connection Wizard": configures a DBMS connection and imports the
ACLib DbConnection framework into the target database.
- `source\` (msaccess-vcs-addin export) is the single source of truth; binary files
(`.accdb`, `.accda`) are not edited as source and are not committed.
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.project.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Project specifics
- Access add-in "DBMS Connection Wizard": configures a DBMS connection and imports the
- Access add-in "ACLib DBMS Connection Wizard": configures a DBMS connection and imports the
ACLib DbConnection framework into the target database.
- `source\` (msaccess-vcs-addin export) is the single source of truth; binary files
(`.accdb`, `.accda`) are not edited as source and are not committed.
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ MS Access project (Microsoft 365, 64-bit). Check the project for whether front e
- Do not import test or example modules unless the user asks (tests need the AccUnit environment).

## Project specifics
- Access add-in "DBMS Connection Wizard": configures a DBMS connection and imports the
- Access add-in "ACLib DBMS Connection Wizard": configures a DBMS connection and imports the
ACLib DbConnection framework into the target database.
- `source\` (msaccess-vcs-addin export) is the single source of truth; binary files
(`.accdb`, `.accda`) are not edited as source and are not committed.
Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# DBMS Connection Wizard
# ACLib DBMS Connection Wizard
Configure DBMS connection + import DBMS connection framework

![](https://access-codelib.net/images/doc/DbmsConnectionWizard_WizardForm.png)

Video: https://access-codelib.net/videos/ACLib-DbmsConnection-Wizard/DbmsConnectionWizard-Use-Login-Form.mp4
More information and video: https://www.access-codelib.net/en/tools/dbms-connection-wizard

## Install
Download [DbmsConnectionWizard.accda](https://github.com/AccessCodeLib/DbmsConnectionWizard/blob/master/access-add-in/DbmsConnectionWizard.accda) and the wizard with the Access Add-In Manager.
1. Download the zip file from the [latest release](https://github.com/AccessCodeLib/DbmsConnectionWizard/releases/latest) and extract `DbmsConnectionWizard.accda`.
2. Open `DbmsConnectionWizard.accda` in Access.
3. Click "Install Add-in" in the install form.

Note:
Use install.vbs to create a compiled version.

Use "Install Add-in as accde" to install a compiled version.

## ACLib DbConnection Framework
Interface documentation: https://source.access-codelib.net/doc/ACLib-DbConnection-Framework/
Interface documentation: https://accesscodelib.github.io/AccessCodeLib/
2 changes: 1 addition & 1 deletion doc/.nd_config/Project.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Encoding: iso-8859-1
# Source Code
# ------------------------------------------------------------------------

Source Folder: ..\..\source\codelib\data
Source Folder: ..\..\source\modules


# This is where you tell Natural Docs which folders it should scan for source
Expand Down
2 changes: 1 addition & 1 deletion source/dbs-properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"Type": 1
},
"AppTitle": {
"Value": "DBMS Connection Wizard",
"Value": "ACLib DBMS Connection Wizard",
"Type": 10
},
"Auto Compact": {
Expand Down
2 changes: 1 addition & 1 deletion source/documents.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"Title": {
"Type": 10,
"Value": "DBMS Connection Wizard"
"Value": "ACLib DBMS Connection Wizard"
}
},
"UserDefined": {
Expand Down
2 changes: 1 addition & 1 deletion source/forms/frmConfig_DBMS.form
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Begin Form
RecSrcDt = Begin
0xdc0c5e0e39c2e240
End
Caption ="DBMS-Connection-Wizard: DBMS-Verbindung konfigurieren"
Caption ="ACLib-DBMS-Connection-Wizard: DBMS-Verbindung konfigurieren"
OnCurrent ="[Event Procedure]"
OnOpen ="[Event Procedure]"
DatasheetFontName ="Arial"
Expand Down
25 changes: 25 additions & 0 deletions source/modules/AddInInstaller.cls
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ Attribute VB_Exposed = False
Option Compare Database
Option Explicit

Private Const ObsoleteMenuAddInSubKey As String = "Menu Add-Ins\DBMS-Connection-Wizard"
Private Const RegistryKeyNotFoundError As Long = &H80070002

Private m_ConfigData As AddInConfiguration

Public Function InstallAddIn(ByVal AddInConfigData As AddInConfiguration, _
Expand Down Expand Up @@ -58,6 +61,7 @@ Public Function InstallAddIn(ByVal AddInConfigData As AddInConfiguration, _
End If

If AddInFileInstalled = True Then
RemoveObsoleteMenuAddInRegistration
RegisterAddIn GetDestFileFullName()
End If

Expand Down Expand Up @@ -182,6 +186,27 @@ Private Function RegisterAddIn(AddInFile)

End Function

' Menu entry used before the wizard was renamed to ACLib DBMS Connection Wizard.
' It is removed on install, otherwise updated installations would show two entries.
Private Sub RemoveObsoleteMenuAddInRegistration()

Dim RegKeyPath As String

' trailing backslash: RegDelete removes the key (not a value)
RegKeyPath = HkeyCurrentAccessProfileRegistryPath() & "\" & ObsoleteMenuAddInSubKey & "\"

On Error GoTo HandleError
CreateObject("WScript.Shell").RegDelete RegKeyPath
Exit Sub

HandleError:
' key does not exist (e.g. first installation): nothing to remove
If Err.Number <> RegistryKeyNotFoundError Then
Err.Raise Err.Number, Err.Source, Err.Description
End If

End Sub

Private Function RegisterMenuAddInItem(wsh, ByVal SubKey, ByVal ItemValName, ByVal RegType, ByVal ItemValue)
Dim RegName
RegName = GetRegistryPath(SubKey)
Expand Down
2 changes: 1 addition & 1 deletion source/modules/DbConnectionInfo.cls
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Attribute VB_Exposed = False
' Josef Poetzl
'
' Remarks:
' Uses table usys_DbmsConnection (create table with DBMS Connection Wizard)
' Uses table usys_DbmsConnection (create table with ACLib DBMS Connection Wizard)
'
'---------------------------------------------------------------------------------------

Expand Down
Loading
Loading