We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bigshiny90
Posts: 1
Joined: Wed Jun 15, 2022 11:05 pm

Creating Patch - max_path of 260

Hi Advanced Installer Team,

I'm having difficulty creating a Patch - I'm adding the 'Upgraded' msi, it is throwing an error when it gets to some files that exceed the windows Max_Path of 260 characters.

Specifics:

The version 1.0 installer has a large amount of image files. A few of these files have pretty long names.
The version 1.1 installer has a handful of these image files changed or added.

When adding 1.0 as the 'New Upgraded', AI starts to process it, but then throws an error 'Error writing to file:'
The path shown is an EXTREMELY long file path - i think AI is extracting the files temporarily to disk and it is using ABSOLUTE filenames. That, plus some extra long image filenames, is creating an error. My guess is a Max_Path problem. (character count of the Absolute path is 263 characters)

So... i have to say, i'm a bit surprised to run into this. There is NO problem with the 'source' installer itself... there are no really long paths in the end.

It is the fact that the Patch project is making everything into an Absolute path that is breaking things...

I'm at a loss on how to fix this... any ideas?

Thanks, I'm attaching a screenshot of the error.

cheers
error.PNG
error.PNG (16.62 KiB) Viewed 1858 times
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Creating Patch - max_path of 260

Hello and welcome to our forums,

For building patches, Advanced Installer uses a third party tool offered by Microsoft called MsiMsp.exe.

As you already know, the error you are encountering here is a OS limitation regarding long paths.

Maximum Path Length Limitation

Unfortuantely, I am not aware of any method to avoid this, other than using a more compact path.

Please let me know if there is anything else I could help you with.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”