Skip to content

proj.db access fails when embedded into the app folder and installed from MSIX #4551

@creatio-ua

Description

@creatio-ua

Problem description

  1. When I run my app installed to "%Program Files%", the embedded proj.db is loaded normally and everything works fine.
  2. When I run the same app installed as an MSIX Windows package (inside the installed folder, the folder tree is the same), the proj.db access fails in some cases (the screenshot below hopefully explains what I mean).
  3. If I copy proj\proj.db to "%LocalAppData%", it'll work even for the MSIX package installation.
  4. If I set a read-only attribute to %LocalAppData%\proj\proj.db, it still works even from an MSIX package installation.

This is how it looks in case of the write access failure (see ACCESS DENIED):
Image

And here's an example of the normal operation:
Image

Expected Output

I don't want to overwrite the shared version of proj.db installed by some other software (into "%LocalAppData%"), and also I don't want my version to ever be overwritten. So I'd like to have a bundled version of proj.db working even when it's installed from MSIX package.

Environment Information

  • OS:
    Edition Windows 11 Pro
    Version 24H2
    OS build 26100.4652

  • PROJ: 9.5.1 (static lib)

  • GDAL: 3.10.0 (static lib)

  • libSQLite3: 3.46.0 (shared lib)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions