Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / April 2005

Tip: Looking for answers? Try searching our database.

CAB file format recommendations

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
user1013 - 04 Apr 2005 16:23 GMT
Hi,
I did not find a more matching category, so I post my question here, since
it has to do with setup.

I am using InstallShield X and have problems extracting one specific file
out of the data1.cab file. This occurs with Windows Installer, WinRar and
even if the data1.cab is generated with makecab.exe directly (makecab.exe
default.mdb NEWCOM~1.CAB). The extraction fails on Win 2000 only. Other
platforms (Win2003 or XP) seem to have no problems during extraction.

So my question: Are there any recommendations regarding this behaviour using
Windows Installer and the CAB File Format?
Gary Chang[MSFT] - 05 Apr 2005 09:07 GMT
Hi,

>So my question: Are there any recommendations regarding this
behaviour using Windows Installer and the CAB File Format?

AFAIK, there isn't any Windows Installer option or CAB file format to
prevent the extraction of a CAB file on a specific Windows system, and
since your CAB file could be extracted successfully on other machines, then
the CAB itself should be OK. So do you get any error message when the
extraction failed on that Windows 2000 machine, it would be useful to
isolate your problem?

Before we proceed, please test the CAB file in some other Windows 2000
machines, will the problem happen? And how about the specific file you
build CAB file with, does the problem only occur when you create CAB file
with it?

If you have any further information related to this problem, please feel
free to post here.

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
user1013 - 05 Apr 2005 10:41 GMT
Hi Gary,
thank you for your reply. I will add more information:

1) Error message:
Using InstallShied Setup (v X or 10.0), it is an InstallScript MSI project:
'Error 1335. The cabinet file 'Data1.cab' required for this installation is
corrupt and cannot be used. This could indicate a network error, an error
reading from the CD-ROM;, or a problem with this package.'
Available Buttons: Abort, Retry, Ignore: Retry will get the same error
message again, Ignore results in Internal error 2350 message box.
Then 'Error -1603 Fatal error during installation. Consult Windows Installer
Help (msi.chm) or MSDN for more information' message box occurs.

MSI verbose log for this situation (... representing that I cut away some
log info):
...
Action 11:10:12: InstallFiles. Copying new files
MSI (s) (84:44): Executing op:
ProgressTotal(Total=30978634,Type=0,ByteEquivalent=1)
MSI (s) (84:44): Executing op: SetTargetFolder(Folder=C:\Program Files\My
Company Name\My Product Name\)
MSI (s) (84:44): Executing op:
SetSourceFolder(Folder=1\PROGRA~1\MYCOMP~1\MYPROD~1\|program files\My Company
Name\My Product Name\)
MSI (s) (84:44): Executing op:
ChangeMedia(MediaVolumeLabel=DISK1,MediaPrompt=Please insert the disk: Please
insert the next
disk,MediaCabinet=1\Data1.cab,BytesPerTick=32768,CopierType=1,,,SignatureRequired=0,,,IsFirstPhysicalMedia=1)
MSI (s) (84:44): Executing op:
FileCopy(SourceName=default.mdb,SourceCabKey=default.mdb,DestName=default.mdb,Attributes=16384,FileSize=30978048,PerTick=32768,,VerifyMedia=1,,,,,CheckCRC=0,,,InstallMode=126091264,HashOptions=0,HashPart1=203953220,HashPart2
=687179949,HashPart3=1913356535,HashPart4=819195572,)
MSI (s) (84:44): File: C:\Program Files\My Company Name\My Product
Name\default.mdb;  To be installed;  No patch;  No existing file
MSI (s) (84:44): Source for file 'default.mdb' is compressed
InstallFiles: File: default.mdb,  Directory: C:\Program Files\My Company
Name\My Product Name\,  Size: 30978048
MSI (s) (84:44): Note: 1: 2318 2: C:\Program Files\My Company Name\My
Product Name\default.mdb
MSI (s) (84:44): Note: 1: 2360
MSI (s) (84:44): Note: 1: 2360
MSI (s) (84:44): Note: 1: 2360
... (several times the same message)
MSI (s) (84:44): Note: 1: 2360
MSI (s) (84:44): Note: 1: 1335 2: Data1.cab
MSI (s) (84:44): Note: 1: 2318 2: C:\Program Files\My Company Name\My
Product Name\default.mdb
MSI (s) (84:44): Note: 1: 2360
... (and the above about 5 more times)

Using Winrar (v3.10) on the database file (default.mdb) directly to compress
and extract will work.
Using Winrar on the data1.cab file will abort without any error message: the
file is created but of much less size (orig 30 MB, after extraction 11 MB).

Using Cabinet Manager (v 4.1.0.217):
Extraction of file(s) failed. Failure decompressing data from the cabinet
file. Size is 11 MB here as well.

2) Test on other machines: At least 5 Win2000 machines show the behaviour.
This are all machines I tested. The InstallShield support figured out the
same problem with this file.

3) The file is a database file (access) and it can be opened and changed
with Access with no problems after successfull extraction on Win 2003.

Hope this information helps.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.