This file is indexed.

/usr/lib/libreoffice/share/extensions/DmathsAddon/DmInstall/Un_Install.xba is in libreoffice-dmaths 3.4+dfsg1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Un_Install" script:language="StarBasic">&apos;************************************************
&apos;Copyright (C) 2006-2010 Didier Dorange-Pattoret
&apos;38, chemin de l&apos;Abbaye 
&apos;74940 Annecy le Vieux
&apos;France
&apos;ddorange@dmaths.com
&apos;
&apos;
&apos;This library is free software; you can redistribute it and/or
&apos;modify it under the terms of the GNU General Public Licence (GPL)
&apos;as published by the Free Software Foundation; either
&apos;version 2.1 of the License, or (at your option) any later version.

&apos;This library is distributed in the hope that it will be useful,
&apos;but WITHOUT ANY WARRANTY; without even the implied warranty of
&apos;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
&apos;General Public License for more details.

&apos;You should have received a copy of the GNU General Public Licence (GPL)
&apos;along with this library; if not, write to the Free Software
&apos;Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
&apos;************************************************



Sub Desinstaller
	Dim LeMessage, NomdelAddonEnPlace as String  rem contient le nom de l&apos;addon installé
	Dim sCheminUnopkg as String

	BasicLibraries.LoadLibrary(&quot;Dmaths&quot;)
	Call ChargementDuVocabulaire
	LeMessage = Trad(iLang,2) &amp; &quot; &quot;
	rem si abandon goto fin
	If Msgbox(LeMessage,33,&quot;Dmaths&quot;)=2 Then Goto Fin
	
	LeMessage = Trad(iLang,4)  &amp; &quot;  &quot;
	
	rem mise en place d&apos;une progressbar
	Globalscope.DialogLibraries.loadLibrary(&quot;DmInstall&quot;)
	oDmProgInst = CreateUnoDialog(DialogLibraries.DmInstall.DmProgInst)
	oDmProgInst.getControl(&quot;Label1&quot;).Visible = False
	
	rem remet la configuration clavier à l&apos;origine
	If Not IsMacOS Then
		Config4Mac(False)
	EndIf
	
	
	If Not TestInstallRezo Then
	
		oDmProgInst.Visible = True
		oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 0
		
		Call Nettoyer rem macro ci-dessous
	
		sCheminUnopkg = TrouveCheminUnopkg	
	
		oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 90

		If InStr(fCheminDmaths,&quot;DmathsAddon.zip&quot;)&gt;0 Then NomdelAddonEnPlace = &quot;DmathsAddon.zip&quot; Else NomdelAddonEnPlace = &quot;DmathsAddon.oxt&quot; 		
		Shell(sCheminUnopkg &amp;&quot; remove &quot; &amp; NomdelAddonEnPlace,0)
		oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 100
		Wait 2000
	
	Elseif ControleDroits(GetRepertoirePath(&quot;inst&quot;)) Then
	
		
		oDmProgInst.Visible = True
		oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 0
		
		Call NettoieLesComptes
		
		sCheminUnopkg = TrouveCheminUnopkg	
	
		oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 85

		If InStr(fCheminDmaths,&quot;DmathsAddon.zip&quot;)&gt;0 Then NomdelAddonEnPlace = &quot;DmathsAddon.zip&quot; Else NomdelAddonEnPlace = &quot;DmathsAddon.oxt&quot; 		
		Shell(sCheminUnopkg &amp;&quot; remove --shared &quot; &amp; NomdelAddonEnPlace,0)
		oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 100
		Wait 2000		
	
	Else
		
		LeMessage = Trad(iLang,1)  &amp; &quot;  &quot; 
		Msgbox(LeMessage,48,&quot;Dmaths&quot;)
		Goto Fin	
	Endif

	oDmProgInst.Dispose()
	Msgbox(LeMessage,48,&quot;Dmaths&quot;)
	Wait 2000
	
	Fin:
End Sub


rem lance la procedure en mode multiutilisateurs
Sub NettoieLesComptes
	Dim sPath, sRacine, sValue, sCheminDuCompte, sCheminUnopkg as String
	
	If GetGuitype = 1 Then 
		sPath = GetRepertoirePath(&quot;home&quot;)
		sRacine = GetRepertoire(sPath)
	ElseIf IsMacOS Then
		sRacine = &quot;/Users&quot;
	Else
		sRacine = &quot;/home&quot;
	EndIf
	rem determine les comptes et appelle la procedure de nettoyage de chacun
	sValue = Dir$(sRacine+GetPathSeparator,16)
		Do 
			If oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value &lt; 80 Then
				oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value + 10 
			Endif
	rem 		Print sValue
			If sValue&lt;&gt;&quot;..&quot; and Mid(sValue,1,1)&lt;&gt;&quot;.&quot;  Then
					If (GetAttr(sRacine+GetPathSeparator+sValue) AND 16 &gt; 0) Then
						sCheminDuCompte = sRacine+GetPathSeparator+sValue			
						Call NettoieLeCompte(sCheminDuCompte)
				EndIf
			End If
			sValue = Dir$
		Loop Until sValue = &quot;&quot;
	If (GetGuiType = 4 and not IsMacOS) Then
		NettoieLeCompte(&quot;/root&quot;)
		If oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value &lt; 80 Then
			oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value + 10 
		Endif
	Endif
	
End Sub

rem nettoie un compte
Sub NettoieLeCompte(sCheminLeDuCompte as String)
	Dim sCheminUser, aFile, aNewFile, sLine as String &apos; contient le chemin de l&apos;utilisateur en cours
	rem Print sCheminLeDuCompte
	sCheminUser = sCheminLeDuCompte + SuffixeDuCompte + GetPathSeparator
	rem Print sCheminUser
	rem Print sSuffixeDuCompte
	rem Print sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;DmBackup.xba&quot;
	rem suppression des modules
	If FileExists(sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;DmBackup.xba&quot;) Then Kill sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;DmBackup.xba&quot;
	If FileExists(sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;DmOptions.xba&quot;) Then Kill sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;DmOptions.xba&quot;
	If FileExists(sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;Lang.xba&quot;) Then Kill sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;Lang.xba&quot;
	If FileExists(sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;DmOptionsTableau.xba&quot;) Then Kill sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;DmOptionsTableau.xba&quot;
	If FileExists(sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;Gdmath_Dyn.xba&quot;) Then Kill sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;Gdmath_Dyn.xba&quot;
	If FileExists(sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;OOoTep_dyn.xba&quot;) Then Kill sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;OOoTep_dyn.xba&quot;

	rem suppression des références aux modules
	aFile = sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;script.xlb&quot;
	rem Print aFile
	If FileExists(aFile) Then
		aFileNew = sCheminUser+&quot;basic&quot;+GetPathSeparator+&quot;Standard&quot;+GetPathSeparator+&quot;script.new&quot;
		iNumberNew = Freefile
		Open aFileNew For Output As iNumberNew
		iNumber = Freefile
		Open aFile For Input As iNumber
		While not eof(iNumber)
			Line Input #iNumber, sLine
	rem		Print sLine
			If (InStr(sLine,&quot;Gdmath_Dyn&quot;)+InStr(sLine,&quot;OOoTep_dyn&quot;)+InStr(sLine,&quot;Lang&quot;)+InStr(sLine,&quot;DmOptions&quot;)+InStr(sLine,&quot;DmBackup&quot;)+InStr(sLine,&quot;DmOptionsTableau&quot;))=0  then Print #iNumberNew, sLine		
		wend
		Close #iNumber
		Close #iNumberNew
		kill (aFile)
		Name aFileNew as aFile
	End If
	
	rem suppression des références aux autotextes et aux galeries
	aFile = sCheminUser+&quot;registry&quot;+GetPathSeparator+&quot;data&quot;+GetPathSeparator+&quot;org&quot;+GetPathSeparator+&quot;openoffice&quot;+GetPathSeparator+&quot;Office&quot;+GetPathSeparator+&quot;Common.xcu&quot;
	rem Print aFile
	If FileExists(aFile) Then
		aFileNew = Mid(aFile,1,(Len(aFile)-3)) &amp; &quot;new&quot;
		iNumberNew = Freefile
		Open aFileNew For Output As iNumberNew
		iNumber = Freefile
		Open aFile For Input As iNumber
		While not eof(iNumber)
			Line Input #iNumber, sLine
	rem		Print sLine
			If (InStr(sLine,&quot;DmathsAddon.oxt/Fichiers/autotext&quot;)+InStr(sLine,&quot;DmathsAddon.oxt/Fichiers/gallery&quot;))=0  then Print #iNumberNew, sLine		
		wend
		Close #iNumber
		Close #iNumberNew
		kill (aFile)
		Name aFileNew as aFile
	End If
	
	
	rem suppression du repertoire dmaths
	If FileExists(sCheminUser+&quot;dmaths&quot;) Then RmDir sCheminUser+&quot;dmaths&quot;
	rem suppression de l&apos;autotexte
	If FileExists(sCheminUser+&quot;autotext&quot;+GetPathSeparator+&quot;dmaths.bau&quot;) Then Kill sCheminUser+&quot;autotext&quot;+GetPathSeparator+&quot;dmaths.bau&quot;
	rem suppression des raccourcis claviers
	If FileExists(sCheminUser+&quot;config&quot;+GetPathSeparator+&quot;soffice.cfg&quot;+GetPathSeparator+&quot;modules&quot;+GetPathSeparator+&quot;swriter&quot;+GetPathSeparator+&quot;accelerator&quot;+GetPathSeparator+&quot;fr&quot;+GetPathSeparator+&quot;current.old&quot;) Then
		If FileExists(sCheminUser+&quot;config&quot;+GetPathSeparator+&quot;soffice.cfg&quot;+GetPathSeparator+&quot;modules&quot;+GetPathSeparator+&quot;swriter&quot;+GetPathSeparator+&quot;accelerator&quot;+GetPathSeparator+&quot;fr&quot;+GetPathSeparator+&quot;current.xml&quot;) Then
			Kill sCheminUser+&quot;config&quot;+GetPathSeparator+&quot;soffice.cfg&quot;+GetPathSeparator+&quot;modules&quot;+GetPathSeparator+&quot;swriter&quot;+GetPathSeparator+&quot;accelerator&quot;+GetPathSeparator+&quot;fr&quot;+GetPathSeparator+&quot;current.xml&quot;
		Endif
		FileCopy sCheminUser+&quot;config&quot;+GetPathSeparator+&quot;soffice.cfg&quot;+GetPathSeparator+&quot;modules&quot;+GetPathSeparator+&quot;swriter&quot;+GetPathSeparator+&quot;accelerator&quot;+GetPathSeparator+&quot;fr&quot;+GetPathSeparator+&quot;current.old&quot;,sCheminUser+&quot;config&quot;+GetPathSeparator+&quot;soffice.cfg&quot;+GetPathSeparator+&quot;modules&quot;+GetPathSeparator+&quot;swriter&quot;+GetPathSeparator+&quot;accelerator&quot;+GetPathSeparator+&quot;fr&quot;+GetPathSeparator+&quot;current.xml&quot;
	Endif 
	rem suppression des custom_toolbar eventuelles
	If FileExists(sCheminUser+&quot;config&quot;+GetPathSeparator+&quot;soffice.cfg&quot;+GetPathSeparator+&quot;modules&quot;+GetPathSeparator+&quot;swriter&quot;+GetPathSeparator+&quot;images&quot;) Then RmDir sCheminUser+&quot;config&quot;+GetPathSeparator+&quot;soffice.cfg&quot;+GetPathSeparator+&quot;modules&quot;+GetPathSeparator+&quot;swriter&quot;+GetPathSeparator+&quot;images&quot; 
	If FileExists(sCheminUser+&quot;config&quot;+GetPathSeparator+&quot;soffice.cfg&quot;+GetPathSeparator+&quot;modules&quot;+GetPathSeparator+&quot;swriter&quot;+GetPathSeparator+&quot;toolbar&quot;) Then RmDir sCheminUser+&quot;config&quot;+GetPathSeparator+&quot;soffice.cfg&quot;+GetPathSeparator+&quot;modules&quot;+GetPathSeparator+&quot;swriter&quot;+GetPathSeparator+&quot;toolbar&quot;	

	rem suppression des icones eventuelles
	If FileExists(sCheminUser+&quot;config&quot;+GetPathSeparator+&quot;icons&quot;) Then RmDir sCheminUser+&quot;config&quot;+GetPathSeparator+&quot;icons&quot; 

	rem suppression des galeries
	For I = 1 To 7	
	If FileExists(sCheminUser+&quot;gallery&quot;+GetPathSeparator+&quot;sg100&quot;+cStr(I)+&quot;.sdg&quot;) Then Kill sCheminUser+&quot;gallery&quot;+GetPathSeparator+&quot;sg100&quot;+cStr(I)+&quot;.sdg&quot;
	If FileExists(sCheminUser+&quot;gallery&quot;+GetPathSeparator+&quot;sg100&quot;+cStr(I)+&quot;.sdv&quot;) Then Kill sCheminUser+&quot;gallery&quot;+GetPathSeparator+&quot;sg100&quot;+cStr(I)+&quot;.sdv&quot;
	If FileExists(sCheminUser+&quot;gallery&quot;+GetPathSeparator+&quot;sg100&quot;+cStr(I)+&quot;.thm&quot;) Then Kill sCheminUser+&quot;gallery&quot;+GetPathSeparator+&quot;sg100&quot;+cStr(I)+&quot;.thm&quot;
	Next I
	
End Sub


Function GetRepertoire (thePath as String) as String rem donne le repertoire situe deux branches en aval
Dim newSplit()
ReDim NewSplit(0)
	splitted = split(thePath,GetPathSeparator)
	newSplit() = splitted()
	ReDim Preserve newSplit(0 to ubound(splitted)-2)
	GetRepertoire = join(NewSplit(),GetPathSeparator)
End Function


Sub Nettoyer
	Dim oLibContainer as Object
    Dim sLib as String
    
	rem suppression de smodules
	DeleteBasicModule(&quot;DmOptions&quot;,&quot;Standard&quot;)
	DeleteBasicModule(&quot;DmBackup&quot;,&quot;Standard&quot;)
	oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 10
	DeleteBasicModule(&quot;Lang&quot;,&quot;Standard&quot;)
	DeleteBasicModule(&quot;DmOptionsTableau&quot;,&quot;Standard&quot;)
	oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 15
	DeleteBasicModule(&quot;Gdmath_Dyn&quot;,&quot;Standard&quot;)
	DeleteBasicModule(&quot;OOoTep_dyn&quot;,&quot;Standard&quot;)
	oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 20
	
	rem suppression des autotextes
	If FileExists(ConvertFromURL(GetRepertoirePath(&quot;user&quot;)+&quot;/autotext/dmaths.bau&quot;)) Then Kill ConvertFromURL(GetRepertoirePath(&quot;user&quot;)+&quot;/autotext/dmaths.bau&quot;)
	SetGalleryAndAutotext(&quot;AutoText&quot;)
	oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 30
		
	rem suppression des galeries
	For I = 1 To 8	
	If FileExists(ConvertToURL(GetRepertoirePath(&quot;user&quot;)+&quot;/gallery/sg100&quot;+cStr(I)+&quot;.sdg&quot;)) Then Kill ConvertToURL(GetRepertoirePath(&quot;user&quot;)+&quot;/gallery/sg100&quot;+cStr(I)+&quot;.sdg&quot;)
	If FileExists(ConvertToURL(GetRepertoirePath(&quot;user&quot;)+&quot;/gallery/sg100&quot;+cStr(I)+&quot;.sdv&quot;)) Then Kill ConvertToURL(GetRepertoirePath(&quot;user&quot;)+&quot;/gallery/sg100&quot;+cStr(I)+&quot;.sdv&quot;)
	If FileExists(ConvertToURL(GetRepertoirePath(&quot;user&quot;)+&quot;/gallery/sg100&quot;+cStr(I)+&quot;.thm&quot;)) Then Kill ConvertToURL(GetRepertoirePath(&quot;user&quot;)+&quot;/gallery/sg100&quot;+cStr(I)+&quot;.thm&quot;)
	Next I
	SetGalleryAndAutotext(&quot;Gallery&quot;)
	oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 40
	
	rem des raccourcis claviers
	sNomFichier=ConvertToURL(GetRepertoirePath(&quot;user&quot;)+&quot;/config/soffice.cfg/modules/swriter/accelerator/&quot;+GetRepertoirePath(&quot;vlang&quot;)+&quot;/current.xml&quot;)
	sNomFichierOld=ConvertToURL(GetRepertoirePath(&quot;user&quot;)+&quot;/config/soffice.cfg/modules/swriter/accelerator/&quot;+GetRepertoirePath(&quot;vlang&quot;)+&quot;/current.old&quot;)

	If FileExists(sNomFichierOld) Then
		If FileExists(sNomFichier) Then Kill sNomFichier 
		FileCopy(sNomFichierOld,sNomFichier)
		Kill sNomFichierOld
	Endif
	oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 50
	
	rem suppression du dossier icons
	If FileExists(ConvertToURL(GetRepertoirePath(&quot;user&quot;)+&quot;/config/icons&quot;)) Then RmDir ConvertToURL(GetRepertoirePath(&quot;user&quot;)+&quot;/config/icons&quot;)
	oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 60
	
	rem suppression de la custom_toolbar eventuelle
	sNomFichier = ConvertToURL(GetRepertoirePath(&quot;user&quot;)+&quot;/config/soffice.cfg/modules/swriter/&quot;)
	If FileExists(sNomFichier + &quot;images&quot;) Then RmDir sNomFichier + &quot;images&quot;
	If FileExists(sNomFichier + &quot;toolbar&quot;) Then RmDir sNomFichier + &quot;toolbar&quot;
	oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 65

	rem suppression du process mise à jour automatique
	oConfigAccess = GetConfigAccess( &quot;/org.openoffice.Office.Events/ApplicationEvents/Bindings&quot;, True )
	If oConfigAccess.hasByName(&quot;OnStartApp&quot;) Then oConfigAccess.removeByName(&quot;OnStartApp&quot;)
	oConfigAccess.CommitChanges
	oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 70
	
	rem desaffiche la barre Dmaths
	Dim sElementNames$()
	oConfigAccess = GetConfigAccess( &quot;/org.openoffice.Office.Addons/AddonUI/OfficeToolBar&quot;, True )
	If  oConfigAccess.hasByName(&quot;org.openoffice.Office.addon.DMathsBarre&quot;) Then
		oAddon = oConfigAccess.getByName(&quot;org.openoffice.Office.addon.DMathsBarre&quot;)
		sElementNames = oAddon.getElementNames()		
		For I = LBound(sElementNames()) To UBound(sElementNames())
			oAddon.getByname(sElementNames(I)).Context = &quot; &quot;
		Next I
	Endif
	oConfigAccess.commitChanges()
	oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 75
		
	oConfigAccess = GetConfigAccess( &quot;/org.openoffice.Office.Addons/AddonUI/OfficeToolBar&quot;, True )
	If  oConfigAccess.hasByName(&quot;org.openoffice.Office.addon.DMathsDisplayBarre&quot;) Then
		oAddon = oConfigAccess.getByName(&quot;org.openoffice.Office.addon.DMathsDisplayBarre&quot;)
		sElementNames = oAddon.getElementNames()
		For I = LBound(sElementNames()) To UBound(sElementNames())
			oAddon.getByname(sElementNames(I)).Context = &quot; &quot;
		Next I
	Endif
	oConfigAccess.commitChanges()	
	oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 80
	
	oConfigAccess = GetConfigAccess( &quot;/org.openoffice.Office.Addons/AddonUI/OfficeMenuBar&quot;, True )
	If  oConfigAccess.hasByName(&quot;org.openoffice.Office.addon.aide&quot;) Then
		oAddon = oConfigAccess.getByName(&quot;org.openoffice.Office.addon.aide&quot;)		
		oAddon.Context = &quot; &quot; 
	Endif
	oConfigAccess.commitChanges()
	oDmProgInst.getControl(&quot;ProgressBar1&quot;).Value = 85
	
End Sub


Sub DeleteBasicModule(srcname,libname) rem supprime le module srcname dans la biblio libname
	Dim oGlobalLib, oLib as Object
	oGlobalLib = GlobalScope.BasicLibraries
	oLib = oGlobalLib.GetByName(libname)
	If oLib.HasByName(srcname) Then oLib.RemoveByName(srcname)
End Sub
</script:module>