FredKruse / writingtool

WritingTool for libreOffice based on LanguageTool
GNU Lesser General Public License v2.1
8 stars 0 forks source link

Unable to Remove Snapshot from LO 24.2.5 #4

Open bunk3m opened 1 month ago

bunk3m commented 1 month ago

Version: 24.2.5.2 (X86_64) / LibreOffice Community Build ID: bffef4ea93e59bebbeaf7f431bb02b1a39ee8a59 CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win Locale: en-CA (en_CA); UI: en-US Calc: CL threaded

Decided to update to the Writing Tool Snapshot 2024-07-15 and remove the older Snapshot (v. 2024-07-08) I tried to Remove the 2024-07-08 Snapshot first but ended up getting the error below.

Remove failed with the following error.

(com.sun.star.lang.IllegalArgumentException) { { { Message = "Cannot detect media-type: file:///C:/Users/username/AppData/Roaming/LibreOffice/4/user/uno_packages/cache/unopackages/lu137922p925.tmp/WritingTool_2024-07-08-snapshot.oxt at C:/cygwin64/home/buildslave/source/libo-core/desktop/source/deployment/registry/dp_registry.cxx:477", Context = (com.sun.star.uno.XInterface) @1c84cb67ee0 } }, ArgumentPosition = (short) -1 }

Removing Snapshot of 2024-07-15 works fine but I can't try a newer version without removing the older snapshot as I don't want a conflict.

Would you mind sharing how to manually remove the 2024-07-08 Snapshot? I suppose I can just delete the package but the registry message has me stumped. Thanks in advance.

FredKruse commented 1 month ago

Normally, the old version should be removed automatically if you install the new version.

I have not had this problem yet. One idea is to delete the directory "C:/Users/username/AppData/Roaming/LibreOffice/4/user" completely. But you will probably lose all extensions and settings.

bunk3m commented 1 month ago

Thanks for your comment, Fred. I wish it would have been removed. Perhaps I messed it up by trying to manually remove it before I installed the newer snapshot?

I'm a new Windows user (employer required) so I'm not quite up to speed on debugging things. It's a bit frustrating for me.

I'm worried about this HKEY that apparently has been installed but won't delete. I'm not sure where to find this or how to get rid of it without screwing up something.

bunk3m commented 3 weeks ago

Hi Fred, I had to completely remove LO today because it wouldn't launch. I didn't remove the directory "C:/Users/username/AppData/Roaming/LibreOffice/4/user" because I don't have time to add all customizations back. After reinstalling LO, I find that the WritingTool_2024-07-08-snapshot.oxt is still there. I installed the update "WritingTool_2024-08-12-snapshot.oxt" as there was no WritingTool installed. The old snapshot wasn't removed again. Is there a way to manually remove only this old "WritingTool_2024-07-08-snapshot.oxt"? Is there a list of files installed that I can manually delete?

bunk3m commented 3 weeks ago

It looks like I figured it out by accident. I restarted LO in Safe Mode. One of the options in the Safe Mode restart is to delete all user installed extentions. When I did that, it deleted the left over WritingTool_2024-07-08-snapshot.oxt. This is much easier than deleting the complete user folder and looks (at least so far) to have solved the issue.