473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How can I work with CAB files

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
4 1766
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: matthurne | last post by:
I just started learning C++ on my own...I'm using Accelerated C++. Something it hasn't explained and I keep wondering about is how header files actually work. I suspect it doesn't get into it...
12
by: Rhino | last post by:
I am having an odd problem: the sqlj command on my system doesn't work. I am running DB2 (LUW) V8 (FP8) on WinXP. I haven't done an sqlj program since Version 6 of DB2 (LUW) so I checked the...
3
by: Douglas Buchanan | last post by:
Buttons don't work if form is opened on startup A2k If 'frmMain' is set to open by default at startup none of the buttons work. If 'frmMain' is opened from the database window then all the...
1
by: Alex VanderWoude | last post by:
I am trying to <include> some text into an XML documentation topic, but that text is stored in a file that is in a different directory than the "current" XML file. Using a relative path does not...
5
by: Jan Bares | last post by:
Hi, I have .NET 2003. When I run "Find in Files" command, everything works as expected. However when I run "Replace in Files" with the same settings a and press Find Next, I get: "Look in: A...
7
by: Altemir | last post by:
SOME BACKGROUND: I am new to ASP.NET, but somehow managed to install a perfectly working ..aspx page on our production server that I compiled in Visual Studio. However, I recently needed to...
4
by: Jason Teagle | last post by:
I'm not sure which is the correct group to post this to, if either, so apologies for the crosspost and if it's OT. I have a Visual Studio.NET 2002-compiled solution that originated at work. At...
3
by: weird0 | last post by:
Hi!all. As part of the course project in the university, students have been given task to develop a front-end for SMILE( an API written in C++ for network modelling). Upon extracting the setup, it...
4
by: Steven De Smet | last post by:
Hello, This is my first post. I searched on the internet for answers but I was unable to solve my problem. So I hope that you guy's can help me with my VB.NET problem I tried to create a...
3
by: V S Rawat | last post by:
I have to work on a website (in php). I downloaded index.php and when I loaded it through my wamp localhost php installation, it gave some errors mentioning the file names, from includes\ so I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.