rbelfort
Posts: 3
Joined: Sat Apr 28, 2018 4:50 pm

"Error reading from file:" during installation when using LZMA compression

Sat Apr 28, 2018 5:27 pm

Hello everybody,

I am currently evaluating the Advanced Installer trial version to see if we (me & the company I am working with) can take advantage of this software. Since we have a large amount of information to be packaged into the installer, we want to use LZMA compression, but after building the EXE installer, for some reason, I keep getting several errors during the installation process: "Error reading from file: C:\[...], Verify that the file exists and that you can access it."

I noticed that it just occurs when using either LZMA compression or LZMA2 as the archive configuration method. If I use the 'Multiple CAB volumes' option, the installation process goes smoothly with no errors.

I did some research and a user had a similar problem: viewtopic.php?t=12046 but apparently, the problem has not been fixed yet.

Steps I performed that lead to the issue:
1. Create a Java Application project.
2. Add some details to the ' Product Details' page.
3. Add the files to be installer.
4. Add shortcuts to be installed.
5. Select "Archive installation files using LZMA compression" option.
6. Build installer.

My machine info:
Windows 10, Intel i5 CPU, 4GB RAM.

Any ideas on how I could fix the problem?

Thanks in advance,
Reynaldo Belfort

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

Re: "Error reading from file:" during installation when using LZMA compression

Thu May 03, 2018 8:54 am

Hello Reynaldo and welcome to our forums,

Thank you for giving Advanced Installer a trial.

I've tested the scenario, but I cannot replicate the behavior. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

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

rbelfort
Posts: 3
Joined: Sat Apr 28, 2018 4:50 pm

Re: "Error reading from file:" during installation when using LZMA compression

Thu May 03, 2018 2:19 pm

Hello Daniel,

Thanks for the reply. I have sent you the .AIP project file, along with the verbose log. Let me know if I can do anything else.

Thanks,
Reynaldo Belfort

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

Re: "Error reading from file:" during installation when using LZMA compression

Fri May 04, 2018 10:19 am

Hello Reynaldo,

We have tested and replicated the behavior. The "Error reading from file: <long file path> ..." error appears because the extracted installation files reach a file path longer than 260 characters. The maximum file path length accepted by the Windows OS is 260 characters.

What happens is that when using our LZMA archiving option the files added in "Files and Folders" page will be extracted at install time under the location set in "Builds" page -> "Configuration" tab -> "Extract location" field. The files are extracted under the above extract location in the same folder structure they are defined in "Files and Folders" page. The problem is that when this extract location reaches a path length longer than 260 characters Windows Installer service won't be able to process it.

The only way to avoid this problem will be to try shortening this extract path either by configuring a shorter extract location path or by shortening the file path of your file added in "Files and Folders" page.

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

rbelfort
Posts: 3
Joined: Sat Apr 28, 2018 4:50 pm

Re: "Error reading from file:" during installation when using LZMA compression

Mon May 07, 2018 3:33 pm

Hello Daniel,

I see. I did not saw that coming. I was able to change the extract path and test it and now works like charm. We might also shorten our file path of the added files on the project just in case.

Thanks for your help!

Best regards,
Reynaldo

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

Re: "Error reading from file:" during installation when using LZMA compression

Tue May 08, 2018 11:01 am

You are always welcome Reynaldo.

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

ssinternalit
Posts: 1
Joined: Thu Feb 10, 2022 11:39 am

Re: "Error reading from file:" during installation when using LZMA compression

Thu Feb 10, 2022 11:42 am

Hello

The problem described probably arises from the use of 32 bit components in advance installer.
We have the same issue with version 17.7 is there a version where this problem has been fixed and it is possible to have paths longer than 256 characters?

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: "Error reading from file:" during installation when using LZMA compression

Thu Feb 10, 2022 1:06 pm

Hello and welcome to our forums,

Please note that this issue is not related to Advanced Installer.

This is a limitation of the Windows OS itself. You can read more about this in the following article:

Maximum Path Length Limitation

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

Zolika_36
Posts: 2
Joined: Thu Apr 21, 2022 5:26 pm

Re: "Error reading from file:" during installation when using LZMA compression

Tue Aug 30, 2022 9:46 pm

Have a great day!
I would have the same problem. I made the installer which is only 3.75GB. I ran it on my laptop and it installed successfully. I tried the installer on another laptop and I got the same error there. Can you help me with this?
Thanks!

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: "Error reading from file:" during installation when using LZMA compression

Fri Sep 02, 2022 8:04 am

Zolika_36 wrote:
Tue Aug 30, 2022 9:46 pm
Have a great day!
I would have the same problem. I made the installer which is only 3.75GB. I ran it on my laptop and it installed successfully. I tried the installer on another laptop and I got the same error there. Can you help me with this?
Thanks!
Hello,

I'm not sure why this is happening.

In order for us to further investigate this, can you please forward to us by email to support at advancedinstaller dot com the following resources:

1. the .AIP (setup project) file
2. an installation log when the problem appears
3. a download link for your setup package so we can test it.

You can create an installation log by launching your setup package with a command line like this:

Code: Select all

msiexec /i setup.msi /L*V "D:\installLog.txt"
when using an MSI package type, or a command like this

Code: Select all

setup.exe /L*V "D:\installLog.txt"
when using an EXE package type.

Best regards,
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”