Hi,

today i noticed a strange problem with some of my extensions containing *.xcu 
files

i can deploy the extensions wihout any problems, for example:

C:\Program Files\OpenOffice.org\program>unopkg add 
.\..\share\uno_packages\user-config.oxt --verbose
--shared
Kopiere: user-config.oxt
Aktiviere: user-config
 Aktiviere: Calc.xcu
 Aktiviere: Common.xcu
 Aktiviere: DataAccess.xcu
 Aktiviere: Linguistic.xcu
 Aktiviere: Paths.xcu
 Aktiviere: Writer.xcu
 Aktiviere: UI.xcu
 Aktiviere: Setup.xcu
unopkg done.

the extension works like expected

Now i will try to remove the extension:

C:\Program Files\OpenOffice.org\program>unopkg remove my.config.user --shared  
--verbose
Deaktiviere: user-config
 Deaktiviere: Setup.xcu
 Deaktiviere: UI.xcu
 Deaktiviere: Writer.xcu
 Deaktiviere: Paths.xcu
 Deaktiviere: Linguistic.xcu
 Deaktiviere: DataAccess.xcu
 Deaktiviere: Common.xcu
 Deaktiviere: Calc.xcu

ERROR: (com.sun.star.deployment.DeploymentException) {
{ Message = "Fehler beim Deaktivieren von: Calc.xcu",  Context = 
(com.sun.star.uno.XInterface)
@34cd868 },
  Cause = (any) { (com.sun.star.ucb.InteractiveAugmentedIOException) { { { {
  Message = "a file or directory could not be deleted", Context = 
(com.sun.star.uno.XInterface)
 @357c3c8 (ImplementationName = "com.sun.star.comp.ucb.FileContent") }, 
Classification =
(com.sun.star.task.InteractionClassification) ERROR }, Code =
(com.sun.star.ucb.IOErrorCode) ACCESS_DENIED }, Arguments = ([]any) { {
(com.sun.star.beans.PropertyValue) { Name = "Uri", Handle = (long) -1, Value = 
(any) { "
file:///C:/Program%20Files/OpenOffice.org/share/uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/data"
},
State = (com.sun.star.beans.PropertyState) DIRECT_VALUE } }, { 
(com.sun.star.beans.PropertyValue) {
Name = "ResourceName",
Handle = (long) -1, Value = (any) { "C:\\Program
Files\\OpenOffice.org\\share\\uno_packages\\cache\\registry\\com.sun.star.comp.deployment.
configuration.PackageRegistryBackend\\registry\\data" }, State = 
(com.sun.star.beans.PropertyState)
DIRECT_VALUE } },
{ (com.sun.star.beans.PropertyValue) { Name = "ResourceType", Handle = (long) 
-1, Value = (any) {
"folder" },
State = (com.sun.star.beans.PropertyState) DIRECT_VALUE } } } } } }

unopkg done.

notice: it is not always the "Calc.xcu" which will fail to be deleted, every 
other of the *.xcu
files can cause the same problem - other extensions are affected too ...

"a file or directory could not be deleted - ACCESS_DENIED "
is it possible that my virus scanner  (i updated recently) will lock a file ???

i have vista 32 and oo 3.1.1 installed ...

any hints ?

Oliver
-- 
GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to