ZTree.com  | ZEN  | About...  

 Index   Back

[Bug] User file changes can be lost   [Zeta]

By: Ben Kent       
Date: Nov 29,2021 at 22:25
In Response to: [Bug] User file changes can be lost (John Gruener)

> I post this as a Bug because ZTree is not always complying with the
> above rule posted here on the forum and in the Help file. As a result the
> user can lose F9 Menu updates, Config Options changes, and session
> History.


John

It's safer to ensure that none of the re-locatable configuration files are under Program Files, but many people do not know that.
I suspect the files end up under %LOCALAPPDATA%\VirtualStore on write but not read.

The help says
-------
To run ZTreeWin with an alternate configuration, copy one or more of these files to another directory. Then create a new shortcut to ZTW.EXE, ..., or set the "Working" or "Start in" directory to this alternate directory.
-------

That could be the cause of the lost data issue, if the affected people have some of the configuration files in the Program Files installation directory, and set the Program Files installation directory as the working directory. So the working directory rule could be overriding this rule
-------
IMPORTANT: Starting with build 2.4.31, all user files (ZTW.HST etc.) will be written to the current users' profile directory at %APPDATA%\ZTreeWin, *if* ZTree is itself installed under 'Program Files'. This is to avoid installation issues related to UAC and remove reliance on the VirtualStore.
-------


So how to improve the situation?

How about changing to these rules?

To run ZTreeWin with an alternate configuration, copy one or more of these files to another directory. Then create a new shortcut to ZTW.EXE, ..., or set the "Working" or "Start in" directory to this alternate directory.
If ZTree is itself installed under 'Program Files', and installation directory is the working directory, then the configuration file(s) in the installation directory are only read if they do not exist in %APPDATA%\ZTreeWin, and if they are saved, then they are written to %APPDATA%\ZTreeWin.

i.e. the configuration files in the 'Program Files' installation directory, are only used as template files for new users, and get saved to %APPDATA%\ZTreeWin on first write, and once they exist in %APPDATA%\ZTreeWin they are read from there.
We do need to handle users who want to use the working directory rule outside of 'Program Files'.

Note
Does 'Program Files' mean either of them or just one bitness?

Ben

690 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 104 users online (0 registered, 104 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 4:04 pm UTC  |  Hits:62,412,299  (27,085 Today )
RSS Feed