Question Locked

How to run a .Net program from a CD (.dll error)?

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a .Net application that runs well (on any windows OS) when the .exe file and its supporting .dlls are located together on a users harddrive or a USB flashdrive. However it fails to run if played directly from a CD (system unable to locate necessary .dll files).

Is there an automated solution to resolve this so I can distribute my application on CD and it will simply play when clicked on. For example, behind the scenes, handling of .dlls.

4 replies

by oh smeg

Because Windows OS do not support Portable Applications very well when they are scripted the way that you have done here.

You'll need to setup the CD as a Install or MSI type file to associate the required DLL and application. ;)

Col

by tony hopkinson

One of the main design criteria of .net was to get rid of dll hell. To deploy you put you exes and dlls in one folder it, only looks there job is a good 'un.
For those who insist on ruining this clever scheme for whatever reason (there are sone good ones) there is the GAC (global assembly cache. You have to install the supporting dlls into it with GACUtils, requires admin privileges and teh dlls must have strong names and your exe bind to them.

by slayer_

The vb6 support files were I think 4 or 5 DLL's. .net1 is 50mb worth of dlls and .net2 is 100mb worth of files (520 files!). It gets worse as you go down the line. How is that solving DLL hell?

This discussion is closed to new replies.