paodelta
Posts: 15
Joined: Thu Jan 25, 2007 12:50 pm
Location: Italy

... file not found in cabinet file ...

I get this error:

"The file '<filename>' cannot be installed because the file cannot be found in cabinet file '<appname>.cab'. This could indicate a network error, an error reading from the CD-ROM, or a problem with this package."

I create the setup procedure with version 4.6.4, the file showed in the error message is in the cab file, infact when I try to install only the feature linked to this component I got no error and the is copied in the correct folder.

How can I solve this problem?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I cannot reproduce this. Have you manually modify the AIP file?

If the problem persist please send a zipped archive containing the following files:

- the .AIP project file, if it doesn't contain any confidential information or a similar, simplified project reproducing the issue
- the resulting MSI file

They will help us greatly to provide a solution in the shortest possible time.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
paodelta
Posts: 15
Joined: Thu Jan 25, 2007 12:50 pm
Location: Italy

Serching the forum I've this topic http://www.advancedinstaller.com/forums ... binet+file
so I opened the .aip file.

I've noticed that the file (registra_file_2S.bat) that rised the error has the same sequence number of another file as you can see in the following:

<ROW File="KeyUtil32.exe" Component_="KeyUtil32.exe" FileName="KeyUti~1.exe|KeyUtil32.exe" Attributes="0" SourcePath="..\shared\util\KeyUtil32.exe" SelfReg="false" Sequence="110"/>
...
<ROW File="registra_file_2S.bat" Component_="SPPWKUP.exe" FileName="regist~1.bat|registra_file_2S.bat" Attributes="0" SourcePath="..\shared\util\registra_file_2S.bat" SelfReg="false" Sequence="110"/>
...

Could the duplicated sequence number be responsible for the error?
The sequence number must be unique? It's mandatory that these numbers be in squence without any gap or it's possible to have a situation like this
...Sequence="1"/>
Sequence="2"/>
Sequence="10"/>
Sequence="11"/>
and so on, without any row with sequence between 3 and 9.

PS: this is my first project so I've deleted some files and inserted them again many times....
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Can you reproduce this? This might be a bug and we are very careful to investigate such matters.

To fix this issue you need to change the sequence number of one of those files to a unique sequence. Or you can delete one of those files and add it again.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
paodelta
Posts: 15
Joined: Thu Jan 25, 2007 12:50 pm
Location: Italy

Hi Gigi,
I don't know how the exact steps needed to reproduce the case. As I wrote, this is my first project with Adv.Inst. so I make some unsual operation while creating the setup project.
I think that the problem is concerned to insert, delete and insert again (many times) the same files in the "Files and Folder" section. I mean that, as I'm an unexperienced user of Adv. Inst., I've deleted and the reinserted (more than once) the same files before understanding how to link a file to a component and a componento to a feature. As a result of this, in the .aip file there was different component with the same sequence number.
Now I've fixed the issue changing the sequence number to a unique value and all works well.
Sorry but I can't show you the exact steps to reproduce the issue...

Thanks for yur help,
Paolo
dcoupal
Posts: 2
Joined: Wed Jan 14, 2009 4:09 pm

Re: ... file not found in cabinet file ...

We have been plagued with this 'file not found in cabinet file' for close to a year.
Once in a while, adding files to the project will generate this error.
We tried changing a lot of parameters in the installer without success.
The error goes away by having other random checkins.

The same installer file that does not work with CAB file works fine if you ask AI to put the files beside the MSI file.

It looks like a bad internal generation of CAB files? bad hash keys?

Our context:
- Eclipse RCP application
- Advanced Installer ran from a build script
- packaging dynamically everything under a root directory

Regards,

Daniel Coupal
Cell Biosciences
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ... file not found in cabinet file ...

Hi Daniel,

Sometimes (usually when synchronized folders are used) Advanced Installer generates duplicate sequences for the files in the package. We are aware of this bug, but we are unable to find a pattern for it (we cannot reproduce it). We are still investigating it and hopefully it will be fixed in a future version.

Until then a solution is to find the duplicate sequences and modify them manually. For example, you can edit the resulted MSI with Orca, go to the "File" table, sort the entries based on the Sequence column and try to find the duplicate values.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dcoupal
Posts: 2
Joined: Wed Jan 14, 2009 4:09 pm

Re: ... file not found in cabinet file ...

Cosmin answer fixed the problem.
I re-numbered some offending indexes at 1000+ and the problem disappeared.

Daniel.

Return to “Common Problems”