Register .Net dlls "on the fly"?

  • Thread starter Benjamin Lukner
  • Start date
B

Benjamin Lukner

Hi!

I'm developing for a CE device that can only perform cold boots.
I can only write to the flash disk and into the registry. All other
changes will be lost when powering off the device.

Now there are programs in different locations on the flash disk, but
they are using sometimes the same dlls.

To save disk space I'd like to put those dlls into a single directory.
But then of course the programs won't find them. Extending the dll
search path didn't help (or did I something wrong?).

When installing a pack of dlls via a cab file several information is
written to the registry. Is this the right way to do it and what do I
have to write?

Kind regards,

Benjamin Lukner
 
C

Chris Tacke, MVP

You want to install them into the GAC. Google for how to do it - it's
essentially a registry and file naming mechanism and it too long to post.

-Chris
 
B

Benjamin Lukner

Thanks!

First step:
http://msdn.microsoft.com/library/d...airforuseincreatingstrongly-namedassembly.asp

Second step:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncfhowto/html/HOWTOGAC.asp

But that deletes the original files. When powering on again, the windows
folder will be restored from flash and the dll files are lost!!

I now automatically copy them on boot to \Temp and then I copy a .GAC
file to \Windows that points to the files in \Temp. That works. I hope
I'll find a way more simple some day...

Cheers,

Benjamin Lukner
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top