pedrom34 / ZoteroPortable-dev-repo

Zotero in PortableApps.com Format - dev repo
https://portableapps.com/apps/office/zotero-portable
186 stars 13 forks source link

Preferences are reverted to default when updating Zotero Portable #7

Closed pedrom34 closed 6 years ago

pedrom34 commented 6 years ago

I have to check if I can reproduce.

pedrom34 commented 6 years ago

Can't reproduce :/

AndhikaWB commented 5 years ago

It will only happen if user insisted of using Zotero after the "Profile Missing" error, because Zotero will write a new data to %UserProfile%\Zotero folder. Since no ZoteroPortable.exe is running after the update, these changes are not being monitored, causing "dirty" folder to be created.

However, after the user close (the non-portablized) Zotero.exe, everything will go back to normal. Since the new instance of ZoteroPortable.exe will detect if %UserProfile%/Zotero folder already exist, and will rename it to %UserProfile%/Zotero.BackupByZoteroPortable during the runtime. It will rename it again to %UserProfile%/Zotero after the runtime, leaving the "dirty" folder still there.

User will need to remove it manually, using the [DirectoriesCleanupForce] is not recommended since some users may have installed a non-portable Zotero by purpose. Using [DirectoriesCleanupForce] will also clean the data of non-portable Zotero.

What is the purpose of having both portable and non-portable Zotero? Both of them have different stored data and library. The same with having more than one copy of portable Zotero. As long as they run only one instance of Zotero at a time (so the data will not get mixed).