473,395 Members | 1,738 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,395 software developers and data experts.

C# WinApp as a stand alone application

Hello All,

Is there a way to compile C# windows application as a stand alone program?

In my univ class we don't have VS.NET installed and I need to have my
executable running with out .NET environment. Is it possible?

As i'm getting the following error:

To run this application you first must install one of the following versions
of .net framework 1.1.4322 [...]

Unfortunately i have no chance for installing anything there.

Thanks,

Roman.
Nov 16 '05 #1
16 3005
Hi Roman Yankin,
Is there a way to compile C# windows application as a stand alone
program?


There if no official supported way from MS!!!

Here is one unsupported (and there are some others):
http://thinstall.com/help/html.html?...tframework.htm

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Nov 16 '05 #2
Nope. You have to install .NET Framework.

"Roman Yankin" <ro********@mail.ru> wrote in message
news:eh**************@TK2MSFTNGP12.phx.gbl...
Hello All,

Is there a way to compile C# windows application as a stand alone program?

In my univ class we don't have VS.NET installed and I need to have my
executable running with out .NET environment. Is it possible?

As i'm getting the following error:

To run this application you first must install one of the following versions
of .net framework 1.1.4322 [...]

Unfortunately i have no chance for installing anything there.

Thanks,

Roman.

Nov 16 '05 #3
Actually this is pretty strange to write library that can't be used without
installation of 100 MB neither on Win98 nor on Win2000...?

"Shiva" <sh******@online.excite.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:u6**************@TK2MSFTNGP12.phx.gbl...
Nope. You have to install .NET Framework.

"Roman Yankin" <ro********@mail.ru> wrote in message
news:eh**************@TK2MSFTNGP12.phx.gbl...
Hello All,

Is there a way to compile C# windows application as a stand alone program?

In my univ class we don't have VS.NET installed and I need to have my
executable running with out .NET environment. Is it possible?

As i'm getting the following error:

To run this application you first must install one of the following versions of .net framework 1.1.4322 [...]

Unfortunately i have no chance for installing anything there.

Thanks,

Roman.

Nov 16 '05 #4
Roman Yankin <ro********@mail.ru> wrote:
Actually this is pretty strange to write library that can't be used without
installation of 100 MB neither on Win98 nor on Win2000...?


Are you talking about installed footprint size, or download size? The
download for the framework is only 23MB.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #5
I'm talking about the installed size. For instance in my case i simply want
to write a small program on C# that emulates some abstract process (my lab.
exercise). In our university class we got only Win2000 Pro and some IDEs
(VS6, Borlands, etc...) obviously i can't install Framework there. And can
someone explain me what's the sense in writing programs on .NET framework if
you can't deploy a compiled app without libraries being installed on the
client PC?

"Jon Skeet [C# MVP]" <sk***@pobox.com> ???????/???????? ? ????????
?????????: news:MP************************@msnews.microsoft.c om...
Roman Yankin <ro********@mail.ru> wrote:
Actually this is pretty strange to write library that can't be used without installation of 100 MB neither on Win98 nor on Win2000...?


Are you talking about installed footprint size, or download size? The
download for the framework is only 23MB.

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

Nov 16 '05 #6
Roman Yankin wrote:
Actually this is pretty strange to write library that can't be used
without installation of 100 MB neither on Win98 nor on Win2000...?


.Net isn't a library, it's an extention of the OS.

And isn't stranger to be using Win98 (or even Win2000) in 2004?

--
Truth,
James Curran [erstwhile-MVP]
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
Nov 16 '05 #7
"Roman Yankin" <ro********@mail.ru> wrote in
news:eT**************@TK2MSFTNGP10.phx.gbl:
I'm talking about the installed size. For instance in my case i simply
want to write a small program on C# that emulates some abstract
process (my lab. exercise). In our university class we got only
Win2000 Pro and some IDEs (VS6, Borlands, etc...) obviously i can't
install Framework there. And can someone explain me what's the sense
in writing programs on .NET framework if you can't deploy a compiled
app without libraries being installed on the client PC?


The same was true of (say) VB, which required VB DLLs to be installed. The
ones for .NET are much larger, but also much more comprehensive.

Andy D
Nov 16 '05 #8
Hi Roman Yankin,
Actually this is pretty strange to write library that can't be used
without installation of 100 MB neither on Win98 nor on Win2000...?


This is not strang, this is by design!
And if you do not like it, you must not use it. This is very simple.
Anyone who programs in the managed world should be (or must be) aware of
this fact.

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Nov 16 '05 #9
Roman Yankin <ro********@mail.ru> wrote:
I'm talking about the installed size. For instance in my case i simply want
to write a small program on C# that emulates some abstract process (my lab.
exercise). In our university class we got only Win2000 Pro and some IDEs
(VS6, Borlands, etc...) obviously i can't install Framework there. And can
someone explain me what's the sense in writing programs on .NET framework if
you can't deploy a compiled app without libraries being installed on the
client PC?


Would you say the same thing about VB, which also required libraries?

I'm not sure that it's obvious that you can't install the framework at
university - have you asked the sys admins whether it would be
acceptable?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #10
Hi Jon Skeet [C# MVP],

I suggest to automaticaly post once a week in all managed newsgroups:
Subject:
WARNING: .NET-Framework is required for C#/VB.NET/Managed C++

Text:
If you want do deploy an application which was written with any programming
language, which is based on the .NET-Framework, you must also install the
..NET-Framework on the target computer!
This requires, that you either pointt to the MS-download site or pack it on
your installation CD.

If you do not want this, then please use a different programming language
(for example native C++ / VB6 / Perl / PHP).

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Nov 16 '05 #11
Jochen Kalmbach <no********************@holzma.de> wrote:
I suggest to automaticaly post once a week in all managed newsgroups:

Subject:
WARNING: .NET-Framework is required for C#/VB.NET/Managed C++

Text:
If you want do deploy an application which was written with any programming
language, which is based on the .NET-Framework, you must also install the
.NET-Framework on the target computer!
This requires, that you either pointt to the MS-download site or pack it on
your installation CD.

If you do not want this, then please use a different programming language
(for example native C++ / VB6 / Perl / PHP).


That would be useful if people read the group before posting, but I
don't think that happens very often.

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

I might be horribly wrong, but I believe the message you get might
indicate that one version or the framework is already installed. If
framework wasn't installed you would get some mscorlib error.
I'm guessing Framework 1.0 is installed, but you are compiling with
framework 1.1.
If 1.0 is installed then there is even less reason for the administrators
not to install 1.1.
Then again, a patch might have changed the error behaviour of framework
programs on non framework systems.

--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #13
Hi Jon Skeet [C# MVP],
I suggest to automaticaly post once a week in all managed newsgroups:

Subject:
WARNING: .NET-Framework is required for C#/VB.NET/Managed C++


That would be useful if people read the group before posting, but I
don't think that happens very often.


*ROFL*...
You are right... (it is bad, but true)

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Nov 16 '05 #14
Dont know if this helps you much, but it is easy to deploy NET framework and
keep it updatet using Software Update Services. SUS is a free utility that
is to be found on Microsofts homepage. Writing code using C# has many
advantages and is saving you lots of time, so spending a little time
evaluating options regarding installing NET framework is maybee not a bad
thing. I realise that you did not ask about this and that this is a little
on the side, but a tip is often OK anyway :-)
Using Win98 is not an optimal solution in an developement environment. From
an administraters (like me) point of view it is really bad.
Best regards
Trond

"Roman Yankin" <ro********@mail.ru> wrote in message
news:eh**************@TK2MSFTNGP12.phx.gbl...
Hello All,

Is there a way to compile C# windows application as a stand alone program?

In my univ class we don't have VS.NET installed and I need to have my
executable running with out .NET environment. Is it possible?

As i'm getting the following error:

To run this application you first must install one of the following
versions
of .net framework 1.1.4322 [...]

Unfortunately i have no chance for installing anything there.

Thanks,

Roman.

Nov 16 '05 #15
> And isn't stranger to be using Win98 (or even Win2000) in 2004?

I consider it odd as well to use W2K in 2004 but at work(new place for me)
we have nothing but W2K. In addition, they just moved over from Exchange 5.5
last week.

--
Ajay Kalra [MVP - VC++]
aj*******@yahoo.com

Nov 16 '05 #16
"Jochen Kalmbach" <no********************@holzma.de> wrote in message
news:Xn*********************************@207.46.24 8.16...
Subject:
WARNING: .NET-Framework is required for C#/VB.NET/Managed C++


Well of course it is! Computers evolve, programming evolves, things
change...

You don't bemoan the fact that Windows XP is hundreds of times larger than
Windows 95...

The .NET Framework is an extension to the operating system.

..NET apps require the .NET Framework - if you don't like it, program in
something else...
Nov 16 '05 #17

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

Similar topics

9
by: none | last post by:
Howdy all, I'm wondering if someone could give some direction on a problem I have or share their experiences. I'm wanting to create a little PHP application that will run on a local machine...
1
by: Takeshi | last post by:
Hi All, I'm new to dotNET. I am (thinking of) building the presentation layer of my application in dotNET. Communication with the backend will be done by subject based (multicast) messaging -...
0
by: Stan | last post by:
Are there any articles that cover the subject of whether a new application built in VS.NET would be better written in ASP.NET or as a stand-alone Windows application? This is an application that...
121
by: David Pendrey | last post by:
I was wondering if it is at all posible to write a stand alone .EXE program in Visual Studio .NET. Hopefully in VB.NET but if not another language would be ok. Thanks for the assistance
2
by: jim-on-linux | last post by:
py help, The file below will run as a stand alone file. It works fine as it is. But, when I call it from another module it locks my computer, The off switch is the only salvation. This...
1
by: sholist | last post by:
I have an application that needs to conform to some finicky clients. The goal is to make the application an asp.net app and host it on the web for our clients which has many benefits as everyone...
2
by: =?Utf-8?B?TUs=?= | last post by:
Hello , I am developing a white board type stand-alone VB .NET application in which the .EXE application will be installed in two or more different client machines . These client machines...
3
by: newsaboutgod | last post by:
I need a stand alone database for a VB.Net application on a laptop. It will have about 15,000 records in it. Frst off, if there any way to load XML in to a dataset and then run SQL against it?...
5
jinalpatel
by: jinalpatel | last post by:
We have access database which is stand alone application. It is sitted at 21 different locations including one main office. Every month the transactions are copied in to disk and sent to the main...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.