Error 1334 .File cannot be found in the Data1.cab - windows

I am working on a Win 7-64 bit machine. I have a software installation package which contains the .msi file, a CAB file and some MST files. I wanted to modify the cabinet file. So I extracted the cab file using CABARC utility.
But before making any changes to the extracted files, just for testing the utility I removed the original cab file from the current directory. And created a new cab file from the files extracted from the original cab file, again using CABARC utility.
But now if I run the .msi file, it shows the error:
ERROR:1334. The file "XYZ" cannot be installed because the file cannot be found in the cabinet file Data1.cab. This could indicate a network error, an error reading from the CD-ROM, or a problem with this package.
But the file is present in the cabinet file I can see that. The same installer is working fine with the original cab file.
I have tried different compression types (MSZIP, LZX:<15...21>) as well, but none of them work. I have not removed/added any file in the cabinet file. Am I doing anything wrong or if there is any other information that a cabinet file stores ?
Thanks.

This error when the setup path exceed the path limit for OS. Try changing output path for installer path to some shorter path.

Related

7zip extract to cloudBerry Drive gives error 'cannot set length of output file. a device attached to the system is not functioning'

Am using 7zip V 17.x GUI to extract files directly to CloudBerry Drive. For larger files >2GB, I get an error 'cannot set length of output file. a device attached to the system is not functioning'.
Is there a workaround in CloudBerry drive setting or in 7zip to fix this error.
Many thanks.
Just found the solution that the cloudBerry drive's temp/working folder is running out of space, hence 7-zip is not able to do the job. After changing CloudBerry drive's temp/working folder directory via : Options -> Advanced -> File Cache Directory ,
the issue is solved.

Getting Oracle 12 C Installation Error File Not Found

I have downloaded two zip files of Oracle 12 C.
I have extracted and trying installing it on Windows 10 64 Bit.
winx64_12102_database_1of2
winx64_12102_database_2of2
Setup is available in folder one running the same from there.
Every time I am getting below error
The solution to this Error is simply when you are unzipping the folders unzip at one common folder as i have done
You will find components folders as shown below
D:\softwares\12coracle\winx64_12102_database_1of2\database\Components
D:\softwares\12coracle\winx64_12102_database_2of2\database\stage\Components
Please try to read the log details as shown in screenshot above,its showing the path where installation log are being created. The location was C:\Program Files\Oracle\Inventory\logs \installActions2016-01-26_01-50-16AM.
After going through the logs i found that,In my case it was not able to find the files at below path during the installation
D:\softwares\12coracle\winx64_12102_database_1of2\database\stage\Components\oracle.rdbms\12.1.0.2.0\1\DataFiles
Because there was other unzipped part as shown below and it was unable to get the files at abovepath Hence i copied all the file from below path to the above path location
D:\softwares\12coracle\winx64_12102_database_2of2\database\stage\Components\oracle.rdbms\12.1.0.2.0\1\DataFiles
I ran the whole installation again and folks it completed in overall 55 mins the overall installation with the plugable and container database configuration itself.
Follow the below steps:
Abort the current installer.
Navigate to second folder /database/stage/Components/ and copy all the files.
Paste all the files in first folder location /database/stage/Components/
Finally , run the setup.exe as administrator

Xamarin component.exe is not opening on Windows

I have downloaded the XPGK .zip archive to be able to upload my component to the Xamarin Store. I have done so by following the first step of this guide.
But when I click the .exe file a command prompt file just appears and disappears? What's the issue?
Did you follow the guide? It doesn't mention that you should click the .exe file to open it. Instead, the .exe file is used to generate the directory structure required for your component.
Use the xamarin-component.exe to create the base structure by typing the following into the console/terminal where is the base folder for your component.
Note: you will need to change the path to the location where you extracted the ".exe” file.
This means that you should first extract the .exe file to a directory where you want your solution to be placed (most likely your workspace).
Then, using a console/terminal, navigate to the directory in which you extracted the .exe file and type the following:
For Windows:
xamarin-component.exe create <foldername>
for OS X:
mono xamarin-component.exe create <foldername>
Where <foldername> is the name you want your directory to be.

How to extract, modify and rebuild a Cabinet File?

I can successfully extract Cabinet files (.cab) using the Windows tool Expand.exe.
Expand.exe foo.cab -F:*
I now want to modify some extracted files and rebuild a Cabinet file from the directory structure.
I found MakeCab.exe and CabArc.exe and tried MakeCab.exe but it doesn´t work.
(There are several files with the same name in different subdirectories and MakeCab.exe doesn´t like that. But the directory structure and the files come from a Cabinet file, so it has to work somehow.)
For extraction I also tried the Linux tool cabextract, which gave me another output with less files/directories extracted.
So I assume there are files in the Cabinet file which also are archived and Expand.exe extracts them too.
So how can i extract, modify and rebuild a Cabinet file?
(The Cabinet files come from WSUS / Windows Update.)
It's not supported to modify a Windows Update (WU) CAB. The CAB files you download from WU are digitally signed by Microsoft and Windows will refuse to install them if the signature is invalidated. Additionally, without special configuration the WSUS server will also realize the CAB files have been modified and re-download fresh copies from the upstream server or MU.
To my surprise, there seems a software from ACD: ACDzip (now discontinued program) that CAN MODIFY the .CAB files.
You can make cab file by using makecab.exe in cmd, if you have multiple files,then you can use makecab file directives to add files to .cab file.
makecab /f name.ddf
The Directive file (.ddf) is
.Set CabinetNameTemplate=cabName.cab
.Set SourceDir=PathWhereYouWantToMakeCab
.Set Cabinet=on
.Set Compress=on
"file1name.txt"
"file2name.txt"
See my answer to this question:
C#/.NET: Creating a CAB and adding files to it without an external library
However, as BenH points out in his answer, the resulting cab file wouldn't work as a substitute WU cab file. But, if all you want is access to the FILES AND FOLDERS inside the WU cab file, e.g. DLLs or driver files, etc. then the approach I described should get you there.
For the approach in my linked answer, note that the CabMaker app is a GUI wrapper around the the MakeCab program and handles the DDF file creation and the MakeCab command line creation for you. Below is what the CabMaker GUI looks like.
I suggest MakeCab.exe is best tool to create the cabinet files.
You should rename your source files.

FileZilla FTPing unzip problems

I have a bash script that utilises inotify-tools to wait for .zip files to be dropped in a substructure under the root. From there they are unzipped into a another directory.
When I copy the .zip files in with WinSCP the script executes correctly. Copying the .zip files with Filezilla leads to this error however:
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
I've googled this error and the two main issues seem to be an old version of Linux's unzip functionality, which I have a newer version of, and trying to copy files that are > 2gb (this file isn't)
Anyone know the issue here, it seems to me that Linux is trying to unzip the script before it is fully copied to disk? Like I said, only filezilla has this error, I don't get it with winSCP
I believe your main issue is you try to process the ZIP when it is still being transfered. Probably what happens is that as soon as the transfer is initiated WinSCP creates a temporary files to store the transfered data. That event would fire your script before the zip file is complety transfered.
That would explain why you get this error :
End-of-central-directory signature not found. Either this file is not
a zipfile,
So the solution would be to have two folders one for transfer and one for compelete. They should be in the same file system. On transfer complete just move from one folder to another.

Resources