473,224 Members | 1,595 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,224 software developers and data experts.

Figuring out what dlls another dll requires

I have my auto update and auto update/ download new plugins system
working. The only thing I'm missing now is the ability to "uninstall"
plugins that are currently installed.

Currently I'm shutting down my app and running a batch file behind the
scenes to delete the dll that corresponds to the plugin which the user
wants to uninstall, however if that plugin came with any other dlls,
they are currently not removed. What I'd like to do is check what dlls
that plugin requires, then make sure none of the other plugins require
those dlls prior to making the batch file. I'd also like to do this
without relying on the plugin creator to make a config file which lists
these dependencies.

Is there any way to do this?
Dec 28 '05 #1
3 1271
Benny,

I don't think that this is a good idea. The reason for this is that the
plug in probably references DLLs that you have no business deleting.

For example, pretty much every assembly in existence has a reference to
mscorlib.dll. The second-most referenced is probably System.dll. Do you
want to delete these? You can't. In reality, for your plug ins, you should
make the requirement that the plug in have references to private assemblies
(in the same directory as it) and thats it. This way, you can just delete
the directory.

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

"Benny Raymond" <be***@pocketrocks.com> wrote in message
news:u%***************@tk2msftngp13.phx.gbl...
I have my auto update and auto update/ download new plugins system working.
The only thing I'm missing now is the ability to "uninstall" plugins that
are currently installed.

Currently I'm shutting down my app and running a batch file behind the
scenes to delete the dll that corresponds to the plugin which the user
wants to uninstall, however if that plugin came with any other dlls, they
are currently not removed. What I'd like to do is check what dlls that
plugin requires, then make sure none of the other plugins require those
dlls prior to making the batch file. I'd also like to do this without
relying on the plugin creator to make a config file which lists these
dependencies.

Is there any way to do this?

Dec 28 '05 #2
Ya... I guess I never thought of the normal dlls that would be refrenced...

The main problem with seperate folders is that I required to set the
plugins up in the same domain as the program itself, which means that
the plugins folder is listed in the app.config inorder to load dlls from
there.

Guess I may have to rely on config files per plugin :(

Nicholas Paldino [.NET/C# MVP] wrote:
Benny,

I don't think that this is a good idea. The reason for this is that the
plug in probably references DLLs that you have no business deleting.

For example, pretty much every assembly in existence has a reference to
mscorlib.dll. The second-most referenced is probably System.dll. Do you
want to delete these? You can't. In reality, for your plug ins, you should
make the requirement that the plug in have references to private assemblies
(in the same directory as it) and thats it. This way, you can just delete
the directory.

Hope this helps.

Dec 29 '05 #3
Benny,

There is no reason to have to do that. Rather, why not have your folder
for the plugins and then have each plugin have its own sub-directory? That
would be better, and you wouldn't have to have a separate config file for
each plugin (rather, they can have their own settings in the config file).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Benny Raymond" <be***@pocketrocks.com> wrote in message
news:uO**************@TK2MSFTNGP09.phx.gbl...
Ya... I guess I never thought of the normal dlls that would be
refrenced...

The main problem with seperate folders is that I required to set the
plugins up in the same domain as the program itself, which means that the
plugins folder is listed in the app.config inorder to load dlls from
there.

Guess I may have to rely on config files per plugin :(

Nicholas Paldino [.NET/C# MVP] wrote:
Benny,

I don't think that this is a good idea. The reason for this is that
the plug in probably references DLLs that you have no business deleting.

For example, pretty much every assembly in existence has a reference
to mscorlib.dll. The second-most referenced is probably System.dll. Do
you want to delete these? You can't. In reality, for your plug ins, you
should make the requirement that the plug in have references to private
assemblies (in the same directory as it) and thats it. This way, you can
just delete the directory.

Hope this helps.


Dec 30 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ted Sung | last post by:
Hi, I'm trying to use a C function ( long int myFunc() ) from a DLL in my C# program. I use DllImport("dllname") a C function and declare it as public static extern int myFunc(); At first...
1
by: darrel | last post by:
We've purchased a component that requires us to install two DLLs. One we add as a reference to our project, but the otherone we have to add to the 'environment setup' as a system path reference....
5
by: Jesper Schmidt | last post by:
Hi, I have a relatively large C++ code base, which requires that static initializers are called when a dll is loaded. This seems to work well for native code, but it does not work for files...
7
by: Sumedh | last post by:
Hi everyone There is a C# project which calls C++/CLI dll to be able to call native C++ including templates. But the C++/CLI code itself also requires the C# dll to get the types. For example: ...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.