@@ -2,27 +2,24 @@ const AddInName = "ACLib-FilterForm-Wizard"
22const AddInFileName = "ACLibFilterFormWizard.accda"
33const MsgBoxTitle = "Install ACLib-FilterForm-Wizard"
44
5- MsgBox "Vor dem Aktualisieren der Add-In-Datei darf das Add-In nicht geladen sein !" & chr( 13 ) & _
6- "Zur Sicherheit alle Access-Instanzen schließen ." , , MsgBoxTitle & ": Hinweis"
5+ MsgBox "Before updating the add-in file, the add-in must not be loaded !" & chr( 13 ) & _
6+ "Close all access instances for safety ." , , MsgBoxTitle & ": Hinweis"
77
8- Select Case MsgBox( "Soll das Add-In als MDE verwendet werden ?" + chr( 13 ) & _
9- "(Add-In wird kompiliert ins Add-In-Verzeichnis kopiert .)" , 3 , MsgBoxTitle)
8+ Select Case MsgBox( "Should the add-in be used as a compiled file (accde) ?" + chr( 13 ) & _
9+ "(Add-In is compiled and copied to the Add-In directory .)" , 3 , MsgBoxTitle)
1010 case 6 ' vbYes
1111 CreateMde GetSourceFileFullName, GetDestFileFullName
12- MsgBox "Add-In wurde kompilliert und in '" + GetAddInLocation + "' abgespeichert " , , MsgBoxTitle
12+ MsgBox "Add-In was compiled and saved in '" + GetAddInLocation + "'. " , , MsgBoxTitle
1313 case 7 ' vbNo
1414 FileCopy GetSourceFileFullName, GetDestFileFullName
15- MsgBox "Add-In wurde in '" + GetAddInLocation + "' abgespeichert " , , MsgBoxTitle
15+ MsgBox "Add-In was saved in '" + GetAddInLocation + "'. " , , MsgBoxTitle
1616 case else
1717
1818End Select
1919
2020
21-
22-
23-
2421'##################################################
25- ' Hilfsfunktionen :
22+ ' Utility functions :
2623
2724Function GetSourceFileFullName()
2825 GetSourceFileFullName = GetScriptLocation & AddInFileName
@@ -33,36 +30,26 @@ Function GetDestFileFullName()
3330End Function
3431
3532Function GetScriptLocation()
36-
3733 With WScript
3834 GetScriptLocation = Replace(.ScriptFullName & ":" , .ScriptName & ":" , "" )
3935 End With
40-
4136End Function
4237
4338Function GetAddInLocation()
44-
4539 GetAddInLocation = GetAppDataLocation & "Microsoft\AddIns\"
46-
4740End Function
4841
4942Function GetAppDataLocation()
50-
5143 Set wsShell = CreateObject( "WScript.Shell" )
5244 GetAppDataLocation = wsShell.ExpandEnvironmentStrings( "%APPDATA%" ) & "\"
53-
5445End Function
5546
5647Function FileCopy(SourceFilePath, DestFilePath)
57-
5848 set fso = CreateObject( "Scripting.FileSystemObject" )
5949 fso.CopyFile SourceFilePath, DestFilePath
60-
6150End Function
6251
6352Function CreateMde(SourceFilePath, DestFilePath)
64-
6553 Set AccessApp = CreateObject( "Access.Application" )
6654 AccessApp.SysCmd 603 , (SourceFilePath), (DestFilePath)
67-
6855End Function
0 commit comments