View Ticket
Not logged in
2026-11-04
18:02 • Fixed ticket [fafc11f270]: Will not find zbar.dat if ZTree installed under C:\Program Files plus 4 other changes artifact: 02b68633ad user: tinus
18:01 • Committed ticket [fafc11f270]. artifact: 9d34b88162 user: tinus
10:45 • Ticket [fafc11f270]: 4 changes artifact: 9a8244936e user: tinus
10:45 • Ticket [fafc11f270]: 6 changes artifact: 4b20947352 user: tinus
2026-11-03
18:14 • Verified ticket [fafc11f270]. artifact: 33b168bcc2 user: tinus
2026-11-02
23:21 • New ticket [fafc11f270]. artifact: 3cb2f900f3 user: anonymous

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.