By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,464 Members | 1,598 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,464 IT Pros & Developers. It's quick & easy.

How can I work with CAB files

P: n/a
Hello NG,

I have few assemblies that I want them to be in a cab file while deployed. Those asms are referenced in the program. How can I use cab files while running the program or in other words what should I do so that my program still runs when my distributed assemblies are combined in a cab file?

Thx,
Po
Apr 3 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hello Pohihihi,

you can managed CAB like zip archives or use CAB SDK http://download.microsoft.com/downlo...abfile_SDK.exe
But in both cases you need to exctract you assemblies and load them dynamically

P> Hello NG,
P> I have few assemblies that I want them to be in a cab file while
P> deployed. Those asms are referenced in the program. How can I use cab
P> files while running the program or in other words what should I do so
P> that my program still runs when my distributed assemblies are
P> combined in a cab file?
P>
P> Thx,
P> Po
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Apr 3 '06 #2

P: n/a
Thanks for the reply Michael,
so what I understand is that there is no way to use those files without
extracting out from cab!!
"Michael Nemtsev" <ne*****@msn.com> wrote in message
news:9c**************************@msnews.microsoft .com...
Hello Pohihihi,

you can managed CAB like zip archives or use CAB SDK
http://download.microsoft.com/downlo...abfile_SDK.exe
But in both cases you need to exctract you assemblies and load them
dynamically

P> Hello NG,
P> I have few assemblies that I want them to be in a cab file while
P> deployed. Those asms are referenced in the program. How can I use cab
P> files while running the program or in other words what should I do so
P> that my program still runs when my distributed assemblies are
P> combined in a cab file?
P> P> Thx,
P> Po
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do
not cease to be insipid." (c) Friedrich Nietzsche

Apr 3 '06 #3

P: n/a
Not necessarily. You could create a custom host that will look in the
cab for the assemblies and load them from there. However, you should
understand that this is NOT a trivial undertaking.

There is a great example in the book "Customizing the Microsoft .NET
Framework Common Language Runtime", located at (watch for line wrap):

http://www.amazon.com/gp/product/073...Fencoding=UTF8

In this example, the author shows how to store assemblies in a OLE
structured file, and load them from there when needed. As a matter of fact,
this is similar to how SQL Server now hosts the CLR and loads the assemblies
from the database itself.

The book was written for .NET 1.1, and I don't believe it was updated
for 2.0 (it's possible that it was, considering the gestation period for
2.0), but if you want to keep your assemblies in a CAB file and load them
from there, this is definitely the way you want to go.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Pohihihi" <no*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Thanks for the reply Michael,
so what I understand is that there is no way to use those files without
extracting out from cab!!
"Michael Nemtsev" <ne*****@msn.com> wrote in message
news:9c**************************@msnews.microsoft .com...
Hello Pohihihi,

you can managed CAB like zip archives or use CAB SDK
http://download.microsoft.com/downlo...abfile_SDK.exe
But in both cases you need to exctract you assemblies and load them
dynamically

P> Hello NG,
P> I have few assemblies that I want them to be in a cab file while
P> deployed. Those asms are referenced in the program. How can I use cab
P> files while running the program or in other words what should I do so
P> that my program still runs when my distributed assemblies are
P> combined in a cab file?
P> P> Thx,
P> Po
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do
not cease to be insipid." (c) Friedrich Nietzsche


Apr 3 '06 #4

P: n/a
thank you.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:ut**************@TK2MSFTNGP15.phx.gbl...
Not necessarily. You could create a custom host that will look in the
cab for the assemblies and load them from there. However, you should
understand that this is NOT a trivial undertaking.

There is a great example in the book "Customizing the Microsoft .NET
Framework Common Language Runtime", located at (watch for line wrap):

http://www.amazon.com/gp/product/073...Fencoding=UTF8

In this example, the author shows how to store assemblies in a OLE
structured file, and load them from there when needed. As a matter of
fact, this is similar to how SQL Server now hosts the CLR and loads the
assemblies from the database itself.

The book was written for .NET 1.1, and I don't believe it was updated
for 2.0 (it's possible that it was, considering the gestation period for
2.0), but if you want to keep your assemblies in a CAB file and load them
from there, this is definitely the way you want to go.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Pohihihi" <no*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Thanks for the reply Michael,
so what I understand is that there is no way to use those files without
extracting out from cab!!
"Michael Nemtsev" <ne*****@msn.com> wrote in message
news:9c**************************@msnews.microsoft .com...
Hello Pohihihi,

you can managed CAB like zip archives or use CAB SDK
http://download.microsoft.com/downlo...abfile_SDK.exe
But in both cases you need to exctract you assemblies and load them
dynamically

P> Hello NG,
P> I have few assemblies that I want them to be in a cab file while
P> deployed. Those asms are referenced in the program. How can I use cab
P> files while running the program or in other words what should I do so
P> that my program still runs when my distributed assemblies are
P> combined in a cab file?
P> P> Thx,
P> Po
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do
not cease to be insipid." (c) Friedrich Nietzsche



Apr 4 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.