Replies: 2 comments 6 replies
-
The last investigation into supporting paths over MAX_PATH showed this wasn't as simple as it should be because some MSI APIs do not support long paths. This would be an honorable work item for someone to take, but I expect it's non-trivial. |
Beta Was this translation helpful? Give feedback.
-
References to Microsoft documentation on this. So this initial limitation would be an issue for the deployed application, as well as the actual installation process. Since the Microsoft Windows Installer subsystem would need to opt into this long path handling... which from some testing I did around the RemoveFile handling was not the case. There's a whole bunch of MSI specific methods that would also need to support the long path handling. So there's lots that Microsoft would need to do to support long paths from the Windows Installer (and I'd imagine it would then need to be another version, so a Windows Installer 6.0 or such...). Even if the Windows Installer (msi) methods did enable long path support (or there was a way to trick them). Here's where you can see the various Windows Installer versions. |
Beta Was this translation helpful? Give feedback.
-
WIX Toolset version 3.11
Frequently hit into this error message in GitHub Action. Error message: 'The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.'
Details why it is hitting the limit. actions/runner#1676
We have enable LongPathsEnable (window registry) and core.longpaths (git config) as instructed from another discussion, which is working great in MSBuild but not for Wix.
My problem fixed by shortening the namespace, however I'm curious if anyone is seeking in enabling Wix to handle longer file paths and file names?
Because of the nature of my company's environment, we have extensive namespaces or a deep folder hierarchy, which is difficult to alter across numerous repositories. I would greatly appreciate it if someone could help us in this matter.
Beta Was this translation helpful? Give feedback.
All reactions