Connect with Expertise | Find Experts, Get Answers, Share Insights

extract cab file with C#

Bill
 
Posts: n/a
#1: May 4 '06
Is there any way to programatically extract a cab file using C#?
--
Bill Larson

Jeffrey Tan[MSFT]
 
Posts: n/a
#2: May 4 '06

re: extract cab file with C#


Hi Bill,

Thanks for your post!

.Net FCL currently did not include the class to handle CAB files, however,
Win32 has Cabinet SDK, which meets your need. We have to use p/invoke to
leverage Cabinet SDK to get this done. Below is the sample article:
"View and Extract CAB File Contents Programmatically"
http://www.thescarms.com/VBasic/CabExplorer.asp

For p/invoke related problem, I think
microsoft.public.dotnet.framework.interop newsgroup is a suitable place.

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Uncle Sammy
 
Posts: n/a
#3: May 4 '06

re: extract cab file with C#


Bill
 
Posts: n/a
#4: May 4 '06

re: extract cab file with C#


Hello,

I downloaded "cabdotnet1.zip", extracted and opened the project up and was
told that the project is missing two files:

CabCompressor.cs
CabDecompressor.cs

Does anyone have these two files or know of a project that is complete?

--
Bill Larson


"Uncle Sammy" wrote:
[color=blue]
> Hey Bill,
>
> See this:
> http://www.devsource.com/article2/0,1759,1666861,00.asp
>
> ~simon
>
>[/color]
Bill
 
Posts: n/a
#5: May 10 '06

re: extract cab file with C#



http://www.devsource.com/article2/0,1759,1731188,00.asp

--
Bill Larson


"Uncle Sammy" wrote:
[color=blue]
> Hey Bill,
>
> See this:
> http://www.devsource.com/article2/0,1759,1666861,00.asp
>
> ~simon
>
>[/color]
Bill
 
Posts: n/a
#6: May 16 '06

re: extract cab file with C#


This article explains and shows how to extract a cab file in C#:

http://www.codeproject.com/Purgatory/CabinetFile.asp


--
Bill Larson


"Uncle Sammy" wrote:
[color=blue]
> Hey Bill,
>
> See this:
> http://www.devsource.com/article2/0,1759,1666861,00.asp
>
> ~simon
>
>[/color]
Closed Thread

Tags
extract cab