-
Notifications
You must be signed in to change notification settings - Fork 0
/
Install_DMP
178 lines (154 loc) · 3.63 KB
/
Install_DMP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
;$VER: DefMousePointer_INSTALL 0.2 (14.11.2022)
;
(set @app-name "DefMousePointers")
(set @default-dest "RAM:")
(set #bak-drawer "SYS:Prefs/Presets/BackupPointers")
(set #dmpn (getversion "DefMousePointers/DefMousePointers"))
(set #dmpv (/ #dmpn 65536))
(set #dmpr (- #dmpn (* #dmpv 65536)))
(set #language (getenv "languagename"))
(set #lang-found 0)
(complete 0)
;
; YOUR LANGUAGE HERE
;(if (= #language "italian")
;(
; (set #lang-found 1)
;
;)
;)
; YOUR LANGUAGE HERE
; YOUR LANGUAGE HERE
;(if (= #language "german")
;(
; (set #lang-found 1)
;
;)
;)
; YOUR LANGUAGE HERE
;...et al
;(SPANISH)
(if (= #language "spanish")
(
(set #lang-found 1)
(set #welcome-msg (cat
"Bienvenido a " @app-name " " #dmpv "." #dmpr "\n"
))
(set #message-first (cat
"PRIMERO realizaremos una copia de seguridad de los ficheros \"ENVARC:Sys/def_#?pointer.info\" a \"" #bak-drawer "\""
))
(set #copying-msg (cat
"Copiando \"def_#?pointer.info\" en \"" #bak-drawer "\""
))
(set #bckupdone-msg (cat
"¡COPIA DE SEGURIDAD HECHA!\n\nAhora BORRAREMOS los ficheros\n\"ENVARC:Sys/def_#?pointer.info\".\n"
))
(set #select-msg (cat
"Elije donde copiar/instalar el cajón \"DefMousePointers\" y su contenido."
))
(set #customdrw-msg (cat
"La copia de seguridad de los punteros se va a copiar a un cajón \'custom\' de " @app-name ".\n"
))
(set #exit-msg (cat
@app-name " instalado.\n\nLee la documentación.\n\nRecuerda que tienes una copia (de seguridad) de tus punteros en \"" #bak-drawer "\""
))
)
)
;default (ENGLISH)
(if (= #lang-found 0)
(
;copy,paste&translate from here into your language
(set #welcome-msg (cat
"Welcome to " @app-name " " #dmpv "." #dmpr "\n"
))
(set #message-first (cat
"FIRST we are going to make a backup of your \"ENVARC:Sys/def_#?pointer.info\" files to \"" #bak-drawer "\""
))
(set #copying-msg (cat
"Copying \"def_#?pointer.info\" to \"" #bak-drawer "\""
))
(set #bckupdone-msg (cat
"BACKUP DONE!\n\nNow we're going to DELETE\n\"ENVARC:Sys/def_#?pointer.info\" files.\n"
))
(set #select-msg (cat
"Select where to copy/install \"DefMousePointers\" drawer and its contents."
))
(set #customdrw-msg (cat
"Backup\'ed pointers are going to be copied into a \'custom\' pointer drawer.\n"
))
(set #exit-msg (cat
@app-name " installed.\n\nRead documentation.\n\nRemember that you have a copy/backup of your pointers in \"" #bak-drawer "\""
))
;copy,paste&translate 'til here into your language
)
)
;;;;;;;;;
(welcome #welcome-msg)
(complete 0)
;
(message #message-first)
(makedir #bak-drawer
(help @makedir-help)
(infos)
)
(complete 5)
;
(copyfiles
(prompt #copying-msg)
(help @copyfiles-help)
(source "ENVARC:Sys/")
(dest #bak-drawer)
(pattern "def_#?pointer.info")
(files)
)
(complete 20)
;
(message #bckupdone-msg)
(run ("C:delete >NIL: ENVARC:Sys/def_#?pointer.info"))
(complete 25)
;
(set #defdir
(askdir
(prompt #select-msg)
(help @askdir-help)
(default @default-dest)
)
)
(set @default-dest (tackon #defdir "DefMousePointers"))
(makedir @default-dest
(prompt #creating-dir @default-dest)
(infos)
)
(complete 30)
;
(copyfiles
(source "DefMousePointers")
(dest @default-dest)
(infos)
(all)
)
(complete 85)
;
(set #ml-src (tackon @default-dest "DefMousePointers"))
(set #ml-dst (tackon @default-dest "DefMousePointers_GUI"))
(set #makelink_cmd (cat "C:makelink >NIL: " #ml-dst " " #ml-src))
(run #makelink_cmd)
(complete 90)
;
(message #customdrw-msg)
;only usefull in real instalaltion mode
(if (= @pretend 0)
(
(set #custom-pointers (tackon @default-dest "POINTERS/custom"))
(copyfiles
(source #bak-drawer)
(dest #custom-pointers)
(infos)
(all)
)
)
)
(complete 99)
;
(exit #exit-msg)
(complete 100)