Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LongPathAware Manifest #328

Open
dbeinder opened this issue Aug 25, 2024 · 2 comments
Open

Add LongPathAware Manifest #328

dbeinder opened this issue Aug 25, 2024 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@dbeinder
Copy link

Starting from Windows 10, paths can be longer than 260 chars, but apps must declare that they are able to handle it, otherwise _tfopen will fail for those files: https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#application-manifest-updates-to-declare-long-path-capability

I have done a quick test, and it seems to work fine, but I'm not familiar enough with the codebase to confidently add a PR for it. dbeinder@b35e15c#diff-163478135344e1ca85e5f1f587940bdeea4beb3a149510970c22ae1c416d7330

@sylikc
Copy link
Owner

sylikc commented Sep 13, 2024

Hmm, this might add a feature... I didn't realize the apps have to declare it.

When you say you've done a quick test... did you name your exe test.exe and include the test.exe.manifest along side it?

@sylikc sylikc added enhancement New feature or request question Further information is requested labels Sep 13, 2024
@dbeinder
Copy link
Author

I tested it by embedding the manifest into the exe during build:
TOQ9l
You may need to enable long paths on your machine if it has been disabled: https://stackoverflow.com/a/71603209/4371382

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants