Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating .exe only file from C# program

Status
Not open for further replies.

kalkalai

Technical User
Feb 24, 2006
33
KZ
Hi,

I have a C# program, it uses lots of .dll files. Now I want to create an .exe out this C# program and install it on OS where .net framework is missing.... Thanks in advance
(can't i do this just like in delphi, when delphi creates an .exe of its program, this .exe file works everywhere, what's wrong with C#)

Looking forward to hear from you...
 
Just like Java programs need a Java runtime on the PC, .NET programs need the .NET redistributable on the PC. They won't run without it.

You could create an installer that contains the .NET runtime and installs it if necessary, but that's about it for your options.

_____
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
 
There are .net linkers available that bundle up the runtime into one exe, but they don't reduce the size of the file your users must download by much. A simple "Hello World" program is usually around 4-5 megabytes.

[google].net linker[/google]

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Chiph,
That looks darned interesting. 4-5MB is still a lot smaller than 23MB for .NET 2.0.

The price is certainly an obstacle for the RemoteSoft product I looked at, but it's good to know this technology is out there.

_____
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top