• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 437
  • Last Modified:

C# How to create a single .exe without having to install my c# application

The only way I found to distribute my small c# apps is to put them on cd and then people run the installer which of course creates a Start > Programs entry and creates a folder with several files in it somewhere on my c: drive. IS there a way to make a single .exe and not have to have people install the program?

Thanks,
Karl66
0
Karl66
Asked:
Karl66
  • 2
2 Solutions
 
Bob LearnedCommented:
With .NET applications, if the correct .NET framework is installed on the target machine, you could just XCOPY deploy the file, without having to run any installation.

Bob
0
 
Karl66Author Commented:
Is it because C# is interpeted at run time and C++ is precompiled that I cannot do an exe for any Windows PC in C#? That is what it sounds like.
0
 
KelmenCommented:
You can do straight EXE copying regardless whether you coding with C# or C++. The catch is the program --Dependency--

if your app use any non-standard stuffs, which is not included by default or come with the OS, that's where you need the setup to properly setup those thing.
0
 
Bob LearnedCommented:
C# is not interpreted, it is JIT compiled at run-time by the CLR.

Bob
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now