473,406 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How do I make a Standalone Application

I want an application developed in C# to be used on any computer _without_
the client computer needing the .NET framework. I have build a sample
application that I want to be able to quickly show to people. I will plug
in a ThumbDrive with my app on it, and then execute my application. I don't
want to have to force people to install the Framework and reboot if they do
not have the .NET framework installed.

Is this possible? and how?

Thanks,

Richard Arthur
Nov 13 '05 #1
10 9673
This is not possible using C#. You will have to use C++ in order to build an
app that does not rely on the .NET Framework.

HTH,

Bill P.

"Richard Arthur" <rb***@cs.byu.edu> wrote in message
news:eZ**************@TK2MSFTNGP11.phx.gbl...
I want an application developed in C# to be used on any computer _without_
the client computer needing the .NET framework. I have build a sample
application that I want to be able to quickly show to people. I will plug
in a ThumbDrive with my app on it, and then execute my application. I don't want to have to force people to install the Framework and reboot if they do not have the .NET framework installed.

Is this possible? and how?

Thanks,

Richard Arthur

Nov 13 '05 #2
Richard Arthur <rb***@cs.byu.edu> wrote:
I want an application developed in C# to be used on any computer _without_
the client computer needing the .NET framework.


You're out of luck. It's not going to happen - at least, not at the
moment.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Nov 13 '05 #3
Bill Priess <no*****@nospam.com> wrote:
This is not possible using C#. You will have to use C++ in order to build an
app that does not rely on the .NET Framework.


Or Java, or Delphi, or C, or Perl, or Python, etc - there are plenty of
languages other than C++ which don't require .NET :)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Nov 13 '05 #4
heh.. Jon you are always on about the details... sheesh! ;)

"Jon Skeet" <sk***@pobox.com> wrote in message
news:MP************************@news.microsoft.com ...
Bill Priess <no*****@nospam.com> wrote:
This is not possible using C#. You will have to use C++ in order to build an app that does not rely on the .NET Framework.


Or Java, or Delphi, or C, or Perl, or Python, etc - there are plenty of
languages other than C++ which don't require .NET :)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too

Nov 13 '05 #5
Right. We used to do all our development in Java, but I did not know you
could bundle the J2EE with a deployed application. I always thought you had
to at least have the Java runtime installed on the destination computer.

Anyway, we shifted to C# for a lot of the COM interop possibility, and for a
myriad of other reasons. We like the way Properties work, our development
uses a lot of Reflecion, and Properties fit our object model very well.

I was afraid of this, and my boss won't be too happy. But I will try to set
something up that will ease the pain.

Thanks.
"Bill Priess" <no*****@nospam.com> wrote in message
news:en****************@TK2MSFTNGP11.phx.gbl...
heh.. Jon you are always on about the details... sheesh! ;)

"Jon Skeet" <sk***@pobox.com> wrote in message
news:MP************************@news.microsoft.com ...
Bill Priess <no*****@nospam.com> wrote:
This is not possible using C#. You will have to use C++ in order to build an app that does not rely on the .NET Framework.


Or Java, or Delphi, or C, or Perl, or Python, etc - there are plenty of
languages other than C++ which don't require .NET :)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too


Nov 13 '05 #6
Richard Arthur <rb***@cs.byu.edu> wrote:
Right. We used to do all our development in Java, but I did not know you
could bundle the J2EE with a deployed application. I always thought you had
to at least have the Java runtime installed on the destination computer.
Nope - your installation can do all that. Sun's JRE is free to
redistribute. Now as for a free J2EE server... you'd have to go with
JBoss or something similar.
Anyway, we shifted to C# for a lot of the COM interop possibility, and for a
myriad of other reasons. We like the way Properties work, our development
uses a lot of Reflecion, and Properties fit our object model very well.

I was afraid of this, and my boss won't be too happy. But I will try to set
something up that will ease the pain.


You can redistribute the .NET framework too. It may be reasonably big,
but it's free to redistribute.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Nov 13 '05 #7
comments below...

"Jon Skeet" <sk***@pobox.com> wrote in message
news:MP************************@news.microsoft.com ...
Richard Arthur <rb***@cs.byu.edu> wrote:
Right. We used to do all our development in Java, but I did not know you could bundle the J2EE with a deployed application. I always thought you had to at least have the Java runtime installed on the destination computer.
Nope - your installation can do all that. Sun's JRE is free to
redistribute. Now as for a free J2EE server... you'd have to go with
JBoss or something similar.


Sorry...I meant the JRE instead of J2EE. So the JRE has to be installed on
a machine before any Java apps can be run. but it is freely distributable.
I thought you meant that I could just bind the Java App with the JRE, and
run the Java App without having to install the JRE first.
Anyway, we shifted to C# for a lot of the COM interop possibility, and for a myriad of other reasons. We like the way Properties work, our development uses a lot of Reflecion, and Properties fit our object model very well.

I was afraid of this, and my boss won't be too happy. But I will try to set something up that will ease the pain.


You can redistribute the .NET framework too. It may be reasonably big,
but it's free to redistribute.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too

Nov 13 '05 #8
Richard Arthur <rb***@cs.byu.edu> wrote:
Nope - your installation can do all that. Sun's JRE is free to
redistribute. Now as for a free J2EE server... you'd have to go with
JBoss or something similar.
Sorry...I meant the JRE instead of J2EE. So the JRE has to be installed on
a machine before any Java apps can be run. but it is freely distributable.


Well, it has to be present. It doesn't have to be installed as such -
you can run the JRE just by having the right files in the right places.
I thought you meant that I could just bind the Java App with the JRE, and
run the Java App without having to install the JRE first.


Yes - see above. On the other hand, if every app does that, you end up
with a lot of JREs! One thing some installers allow is to ask the user
to select an existing JRE, or install one for them to be used by that
app and others, or place one in the app's directory just for its own
use.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Nov 13 '05 #9
Can I ask that how to redistribute .NetFramework ? reinstall the whole
..netframework or ..?
Thanks
John

"Richard Arthur" <rb***@cs.byu.edu> comments below...

"Jon Skeet" <sk***@pobox.com> wrote in message
news:MP************************@news.microsoft.com ...
Richard Arthur <rb***@cs.byu.edu> wrote:
Right. We used to do all our development in Java, but I did not know you could bundle the J2EE with a deployed application. I always thought you had to at least have the Java runtime installed on the destination computer.
Nope - your installation can do all that. Sun's JRE is free to
redistribute. Now as for a free J2EE server... you'd have to go with
JBoss or something similar.


Sorry...I meant the JRE instead of J2EE. So the JRE has to be installed on
a machine before any Java apps can be run. but it is freely distributable.
I thought you meant that I could just bind the Java App with the JRE, and
run the Java App without having to install the JRE first.
Anyway, we shifted to C# for a lot of the COM interop possibility, and for a myriad of other reasons. We like the way Properties work, our development uses a lot of Reflecion, and Properties fit our object model very well.

I was afraid of this, and my boss won't be too happy. But I will try to set something up that will ease the pain.


You can redistribute the .NET framework too. It may be reasonably big,
but it's free to redistribute.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too


Nov 13 '05 #10
You can include the dotnetfx.exe when you create an installer in .NET. If
you are using something like InstallShield or something like that, you can
also include the redistributable.

Bill P.
"John" <jo******@froggy.com.au> wrote in message
news:ew**************@TK2MSFTNGP11.phx.gbl...
Can I ask that how to redistribute .NetFramework ? reinstall the whole
.netframework or ..?
Thanks
John

"Richard Arthur" <rb***@cs.byu.edu> comments below...

"Jon Skeet" <sk***@pobox.com> wrote in message
news:MP************************@news.microsoft.com ...
Richard Arthur <rb***@cs.byu.edu> wrote:
Right. We used to do all our development in Java, but I did not know you could bundle the J2EE with a deployed application. I always thought you
had
to at least have the Java runtime installed on the destination
computer.

Nope - your installation can do all that. Sun's JRE is free to
redistribute. Now as for a free J2EE server... you'd have to go with
JBoss or something similar.
Sorry...I meant the JRE instead of J2EE. So the JRE has to be installed

on a machine before any Java apps can be run. but it is freely distributable. I thought you meant that I could just bind the Java App with the JRE, and
run the Java App without having to install the JRE first.
Anyway, we shifted to C# for a lot of the COM interop possibility, and
for a myriad of other reasons. We like the way Properties work, our development uses a lot of Reflecion, and Properties fit our object model very
well.
I was afraid of this, and my boss won't be too happy. But I will try

to set something up that will ease the pain.


You can redistribute the .NET framework too. It may be reasonably big,
but it's free to redistribute.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too


Nov 13 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jeppe | last post by:
Hi @ll, I'm investigating the possibility to call a struts action on a web environment from a standalone java application. I need to make this call automatically, from a crontab (on unix)....
2
by: Sandeep Gupta | last post by:
Hi, I've written a commercial application that uses Python scripts for some of the functionality. Installing the Python portion of the application requires me to first install Python, and then...
3
by: mehrdad | last post by:
Hi, I have a fully functional MS-Access database. May I build such an "exe" file from a MS-Access "mdb" file which one who has not MS-Access installed on his/her system can take advantage of the...
3
by: Frankie | last post by:
I want to build a standard application (without .NET Framework features) with my Visual C++.NET. I want to produce a standalone executable application that runs in another PC without .NET...
1
by: Martin Raychev | last post by:
Hi everyone, I have to design an application which has to display some graphics of maritime data. I am wondering whether it could be web application (ASP.NET) or standalone C# application.
2
by: JohnR | last post by:
Hi all. In my program I try to handle all obvious potential errors with structured error handling (try-catch) block. What I would like to do is have an 'overall' error handler that would...
3
by: Daniel Nogradi | last post by:
What would the simplest way to make an application that has both a web interface and runs from behind a web server but also can be used as a standalone app with a gui? More precisely is it possible...
2
by: James Stroud | last post by:
Hello All, I am trying to create a semi-standalone with the vendor python on OS X 10.4 (python 2.3.5). I tried to include some packages with both --packages from the command and the 'packages'...
7
by: tah | last post by:
Hey, Can someone please clarify, confirm, or set me straight on my understanding of a standalone="yes" attribute in the xml version element? I assume it means that the xml document containing it...
1
by: undertruck | last post by:
Hello, Someone posted this topic and I was not allowed to post a reply. So pardon me for asking this here again. Someone has to say something on this? I'm kinda looking for the same thing. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.