WindowsForm Application in C#.NET

  • Thread starter Thread starter Rajeev
  • Start date Start date
R

Rajeev

Hi
I have created a WindowsForm application in C#.NET. When I try to run
the exe on some machine without .NET framework it errors out and
prompts for .NET framework installation. Do I need to install the
complete the .NET framework on the machine I am runing it on or can I
just copy some dll's into this machine and make it work.
In other words is it possible to run a WinForm application designed in
..NET to run on a machine without .NET framework by just copying some
dll's.

Thanks a lot
 
The complete framework is required.

--

HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)
 
In theory, you can find out all the dependent assemblies (.dll) of your .NET
exe, then copy those dependent dlls into your application directory, in
addition you also need to copy the necessary CLR runtime files
(c:\windows\system32\mscoree.dll,
c:\windows\microsoft.net\framework\v1.1.4322\mscorwks.dll, etc). Now you
have all files to run your application, unfortunately, the CLR relies
heavily on the windows registry settings (look at
HLLM\Software\Microsoft\.NETFramework hive), so copying files will NOT work,
you need to do something on the registry.

Our linker and mini-deployment tool does exactly the above:
(1) find all dependent files, and put them into a directory
(2) provide a virtual registry internal to your application
Now you can copy the generated package to machines w/o .NET Framework, and
it works just fine. It never touches the registry of the target machine.

more info here: http://www.remotesoft.com/linker/
send an email if you need a trial version
 
Hi Rajiv,

..NET applications run within a protected environment(CLR). So it does not
make any sense to copy certain DLLs instead of installing the Framework.

btw, r u from Bangalore, India?

Regards,
Girish Kumar
 
Back
Top