cminorm
Posts: 30
Joined: Mon Jan 23, 2012 4:13 pm

The file cannot be found in cabinet file.

When I try to install my patch file I get the following error:

The file 'invoice_report.htm" cannot be installed because the file cannot be found in cabinet file "PCW_CAB_PB3". This could indicate a network error, an error reading from the CD-ROM, or a problem with the package.

The only different between the two version is as follows:
I added a few additional SQL text files.
Added a customer action with PATCH as the expression.
Set the exit dialog to run the application and the readme file.

The file in question has not been changed between the two versions.

Does anyone know what is causing this error?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: The file cannot be found in cabinet file.

This topic was already debated. Here's the link: 1334 error.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cminorm
Posts: 30
Joined: Mon Jan 23, 2012 4:13 pm

Re: The file cannot be found in cabinet file.

After reviewing that thread, my understanding is that I have to replace all the files in the project?

I replaced all the offending folders, and the patch now runs, the problem i'm having now is that none of the files in the patch are being updated.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: The file cannot be found in cabinet file.

Indeed, a proposed solution was to remove + re-add all files generating conflict. This is tricky with a patch because replacing them broke one of the patch rules.

Pay attention to the component of the files you replaced. They should have the same GUIDs in both consecutive projects. If this doesn't work I'm afraid you'll have to repeat creating the upgraded version project for the patch from scratch while considering the sequence issue you just fixed.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cminorm
Posts: 30
Joined: Mon Jan 23, 2012 4:13 pm

Re: The file cannot be found in cabinet file.

I started over and was able to identify what is causing the patch to fail. Everything works perfectly until I added some SQL script files.

Is there a special way new files need to be added when using a patch?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: The file cannot be found in cabinet file.

Glad you found the culprit!
Is there a special way new files need to be added when using a patch?
No, not really but there are details you need to consider, they are listed in the patch rules article I previously linked. For example replacing one of the files could modify its component and create a sequence mismatch, thus breaking one of the patch rules.

To execute SQL scripts in a patch:
  • their execute condition should include PATCH
  • "during maintenance (repair / modify)" option should be enabled
All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cminorm
Posts: 30
Joined: Mon Jan 23, 2012 4:13 pm

Re: The file cannot be found in cabinet file.

I'm currently using version 10.3 and when I add a file, it puts it right in the middle of the project. This offsets most of the files and causes a series of mismatch errors when I generate the patch. I tried adding a new feature and place the files there, but I still get the errors. If I try and apply this patch with the new files it says "the file cannot be found in cabinet file".

If I don't add any new files and simply replace all the files, everything works fine.

From what I was able to find in my research, the way Advanced Installer organizes files, does not make adding files possible in a patch. The new files would need to be added to the end of the sequence.

Return to “Common Problems”