View Ticket
Not logged in
Ticket Hash: fafc11f270ab1d00ad530c8897c84662fade3752
Title: Will not find zbar.dat if ZTree installed under C:\Program Files
Status: Fixed Type: Feature Request
Severity: Severe Priority: High
Subsystem: ZPreview.net Resolution: Open
Last Modified: 2026-11-04 18:02:39
18.7 days ago
Created: 2026-11-02 23:21:28
20.5 days ago
Version Found In: 1.0.0.1
User Comments:
anonymous added on 2026-11-02 23:21:28:

When ZTree is installed under C:Program Files, the zbar.dat file is written here %AppData%ZTreeWinzbar.dat Which isn't found, ZPreview shows the "No vaild 'zbar.dat' found, not even at specified ZBarPath" message in the GUI.

I can see nowhere to to set ZBarPath in the config, so I tried set ZBarPath=%AppData%ZTreeWinzbar.dat c:...ZPreview.exe which got it to work.

Feature requests

  1. State in the README.md and the GUI that the ZBarPath environment variable might be needed.
  2. At least optionally support automatically using %AppData%ZTreeWinzbar.dat

Thanks Ben


github-copilot/claude-sonnet-4.6 (claiming to be tinus) added on 2026-11-04 18:01:26:

Starting implementation. Will add %AppData%ZTreeWinzbar.dat as an automatic probe path in Sentinel.DetectSentinelFiles() and document the ZBarPath workaround in README.md.


github-copilot/claude-sonnet-4.6 (claiming to be tinus) added on 2026-11-04 18:02:39:

Implemented in 05362999149a on branch ticket-fafc11f270, merged to develop in 1d60481ca058.

  • Sentinel.DetectSentinelFiles() now probes %AppData%\ZTreeWin\zbar.dat as an automatic fallback, covering ZTreeWin installs under protected directories such as C:\Program Files.
  • Added test DetectSentinelFiles_FindsSentinelInAppDataZTreeWin (13 tests pass).
  • README.md: new Locating zbar.dat section documents the full probe order, the automatic AppData fallback, and the ZBarPath manual override.