@@ -2,27 +2,24 @@ const AddInName = "ACLib-FilterForm-Wizard"
2
2
const AddInFileName = "ACLibFilterFormWizard.accda"
3
3
const MsgBoxTitle = "Install ACLib-FilterForm-Wizard"
4
4
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"
7
7
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)
10
10
case 6 ' vbYes
11
11
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
13
13
case 7 ' vbNo
14
14
FileCopy GetSourceFileFullName, GetDestFileFullName
15
- MsgBox "Add-In wurde in '" + GetAddInLocation + "' abgespeichert " , , MsgBoxTitle
15
+ MsgBox "Add-In was saved in '" + GetAddInLocation + "'. " , , MsgBoxTitle
16
16
case else
17
17
18
18
End Select
19
19
20
20
21
-
22
-
23
-
24
21
'##################################################
25
- ' Hilfsfunktionen :
22
+ ' Utility functions :
26
23
27
24
Function GetSourceFileFullName()
28
25
GetSourceFileFullName = GetScriptLocation & AddInFileName
@@ -33,36 +30,26 @@ Function GetDestFileFullName()
33
30
End Function
34
31
35
32
Function GetScriptLocation()
36
-
37
33
With WScript
38
34
GetScriptLocation = Replace(.ScriptFullName & ":" , .ScriptName & ":" , "" )
39
35
End With
40
-
41
36
End Function
42
37
43
38
Function GetAddInLocation()
44
-
45
39
GetAddInLocation = GetAppDataLocation & "Microsoft\AddIns\"
46
-
47
40
End Function
48
41
49
42
Function GetAppDataLocation()
50
-
51
43
Set wsShell = CreateObject( "WScript.Shell" )
52
44
GetAppDataLocation = wsShell.ExpandEnvironmentStrings( "%APPDATA%" ) & "\"
53
-
54
45
End Function
55
46
56
47
Function FileCopy(SourceFilePath, DestFilePath)
57
-
58
48
set fso = CreateObject( "Scripting.FileSystemObject" )
59
49
fso.CopyFile SourceFilePath, DestFilePath
60
-
61
50
End Function
62
51
63
52
Function CreateMde(SourceFilePath, DestFilePath)
64
-
65
53
Set AccessApp = CreateObject( "Access.Application" )
66
54
AccessApp.SysCmd 603 , (SourceFilePath), (DestFilePath)
67
-
68
55
End Function
0 commit comments