OK, now let's take ut from a novice's standpoint...

I went in to find out everything there is about the above mentioned utilities...I did it on the suggestion of MSIPackager...But nowhere on the net are there any documentation on how to create a CAB file from scratch...The documentation that MS provides is from a standpoint of someone already having a Masters degree in Computer Science...

So, would someone step up and stepwise explain in easy to follow directions how these utilities work please...

Keep in mind, novices here...True knowledge is not just in knowing but of passing it on to others, in a way they never forget...So be the first in spreading this knowledge in cyberspace...

Thanks in advance and regards...
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
makecab is included with XP I believe - try makecab.exe /? from a command prompt for starters...

typical command line is: makecab.exe /f yourfile.ddf

yourfile.ddf might then contain (for example):

-----------
.OPTION EXPLICIT
.Set MaxDiskSize=0
.set DiskDirectoryTemplate=
.Set CabinetNameTemplate=..\_CreateCab.cab
.Set Cabinet=on
.Set Compress=on
;** The files specified below are stored, compressed, in cabinet files

file1
file2
file3
etc
-----------

Don't forget that file1, file2, file3 etc relate to the 1st column of the file table and should be in the same order as the last (sequence) column of the file table! The easiest way IMO to build ths list is to copy and paste the file table (from Orca / Insted) into Excel then sort by sequence no, then copy the 1st column and paste it into your .ddf file - siiimples.

More makecab.exe info on this page: http://msdn.microsoft.com/en-us/library/dd583149(office.11).aspx

See how you get on - post back if you get stuck...
Answered 03/12/2010 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
Thanks MSIPackager...

I will run your instructions to get acquianted with these utilities...Will update you...

Regards...
Answered 03/15/2010 by: Repackman
Purple Belt

Please log in to comment
0
If you open any msi which has an external source tree (you can either extract the embedded files into the source tree using InstEd Plus, or via an admin install), from InstEd you can then right click on a Media table entry and selecte show ddf. This will generate a ddf for you with all the files in the correct order and it handles some gotchas such as file times. Or you can also rebuild the cab right there and then.
Answered 03/18/2010 by: instedit
Orange Belt

Please log in to comment
0
If you want to create a CAB having files for certain location, you can write a script to recursively traverse the specified folder structure and then create a DDF file out of it. Finally, just pass this file to MAKECAB and you are through.

You can maintain a class structure array in your script. It should get populated for each file as and when you go on writing a file name to DDF so the sequence will remain the same and you can easily update File, Component, Media and FeatureComponent table based on this array.

I hope this helps!!!
Answered 03/18/2010 by: milindsm
Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity