filename or extension is too long - Advanced Installer Community
toosensitive
Posts: 30
Joined: Wed Dec 07, 2011 8:27 pm

filename or extension is too long

I used to use AI 9.0.1, and I have
I see "DownloadsFolder=C:\Users\yhou\AppData\Roaming\Caphyon\Advanced Installer\updates\" in updater.ini
and updater worked fine.

Now I upgrade to 11.4.1
I have
DownloadsFolder=C:\ProgramData\Caphyon\Advanced Installer 11.4.1\updates\ in updater.ini
but when I click update, I see an error saying filename or extension is too long

1. I searched and found this post http://www.advancedinstaller.com/forums ... =2&t=19570
and saying "DownloadsFolder"need shortening. Is it the case?
Do I change the downsfolder directly from the ini file with notepad and save it back?

2. I see my previous DownloadsFolder was longer than current one, but updater did not have the error as now.

Thanks
toosensitive
Posts: 30
Joined: Wed Dec 07, 2011 8:27 pm

Re: filename or extension is too long

update:
auto update works for some users, does not work for one user.
I checked the ini file on the user''s PC
He has a long DownloadsFolder (120 chars)
I have a shorter downloadsfolder (85 chars)
So I wonder what is the max length for DownloadsFolder
and also what's the work around other than shorten his DownloadsFolder?

Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: filename or extension is too long

Hello,

Usually, this error appear when the Updater tries to download the updates (hosted on your server) on local machine, but the local download location uses a path longer than 255 characters. Please keep in mind that, when downloading updates, the Updater proceed like this:
1. get the "DownloadsFolder" entry value within the INI file installed on customer machine (alongside the Updater)
2. get the section name (e.g. UpdatesSection) within the updates configuration file hosted on your server (this INI section has the same name as the update name added in your updates configuration project -> Updates page) and append it to the "DownloadsFolder" path
3. try to download the updates package (e.g. updates.exe) hosted on your server on the above path (<DownloadsFolder path>\UpdatesSection\updates.exe)

If the path from step 3 is longer than 255 characters, then the related error will be triggered. In order to avoid this error you should set the "Updater page -> Download updates in this folder" field, from your installation project, to a path which will be resolved as shorter as possible. Also, when adding an update in your updates configuration project -> "Updates" page you should not use a long name for your update name.

Let us know if this helped, otherwise in order to investigate this further please send us the INI file residing on your customer machine alongside the Updater and the updates configuration file hosted on your server.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”