473,544 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sharing programs with friends

Hello,

I want to show my friends my c# work, but sending them the
bin/release/progname.exe program doesnt work. Research
has indicated this is because they have the .net framework
v1.1 - whereas I have v2.0

I have worked out that if I hit the menu 'Build, Publish progname'
it works on most of my friends PC's (but not all) so I have a
few questions.

1. Why doesnt it work on all PC's?

2. The standard exe is just 28k, yet the published files are
460kb, I expected it to be larger to accommodate the 2.0
framework bits required - but didnt expect it to be over 16
times larger. Is this right?

3. Ideally I'd like to give them just one .exe for them to run,
is there any way to do this?

Many, many thanks for your help. James.

Dec 1 '05 #1
3 1036
James <c_********@yah oo.co.uk> wrote:
I want to show my friends my c# work, but sending them the
bin/release/progname.exe program doesnt work. Research
has indicated this is because they have the .net framework
v1.1 - whereas I have v2.0

I have worked out that if I hit the menu 'Build, Publish progname'
it works on most of my friends PC's (but not all) so I have a
few questions.

1. Why doesnt it work on all PC's?
That's hard to say without a bit more information.
2. The standard exe is just 28k, yet the published files are
460kb, I expected it to be larger to accommodate the 2.0
framework bits required - but didnt expect it to be over 16
times larger. Is this right?
That's not including .NET 2.0 (which would be much, much larger). It's
just a "ClickOnce" deployment. Look up ClickOnce on MSDN for more
information.
3. Ideally I'd like to give them just one .exe for them to run,
is there any way to do this?


Yes - get them to run Windows Update and install .NET 2.0.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Dec 1 '05 #2
Hi Jon,

Firstly thanks for the help.

I've looked up click once and it appears that that's the publishing
method I've been using. I cannot get everyone to install .Net 2.0
and so I guess I'm stuck with large archives and multiple files
until the latest windows becomes more prevelant!

Unless any other reader knows something special.... :o)
Many thanks, James.

Dec 1 '05 #3
If you are writing .NET 2 code (e.g. using some flavor of VS2005), then this
simply isn't going to work regardless of how you publish it, what files you
bundle, etc (short of bundling the CLR itself, which I don't think you can
do without major hacks). The CLR is a necessary prerequisite; note that we
are talking about the .NET 2 *framework*, and not Visual Studio or
anything...

If you want to target machines that only have v1.1 of the framework, then
you need to write v1.1 code, i.e. using VS2003 (or at least, the 1.1 version
of csc).

Marc

"James" <c_********@yah oo.co.uk> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
Hi Jon,

Firstly thanks for the help.

I've looked up click once and it appears that that's the publishing
method I've been using. I cannot get everyone to install .Net 2.0
and so I guess I'm stuck with large archives and multiple files
until the latest windows becomes more prevelant!

Unless any other reader knows something special.... :o)
Many thanks, James.

Dec 2 '05 #4

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

Similar topics

3
1795
by: Mutkey | last post by:
Hi; I have 2 sides of my website, which uses 2 different stylesheets.They have in common a feedback (HTML02) page. Currently I have duplicated the feedback pages in both sides of the webpage so they show the correct stylesheet for that area. But this involves double updating everytime the feedback is changed. How could I have HTML01...
12
2298
by: Vibhajha | last post by:
Hi friends, My sister is in great problem , she has this exam of C++ and she is stuck up with some questions, if friends like this group provides some help to her, she will be very grateful. These are some questions:- 7. design and implement a class binsearch for a binary search tree.it includes search,remove and add options.make suitable...
8
2858
by: Brandon McGinty | last post by:
Hi, I've been learning python for the past couple of months and writing misc scripts here and there, along with some web apps. I'm wondering if anyone has ideas of programs I might try my hand at making? I'd appreciate it if they don't use images, because I'm blind. Also, I'm thinking of hiring myself out as a free-lance programmer. Are...
8
1889
by: Kissi Asiedu | last post by:
I have a database in a shared folder, however users with permission can only access the database in read-only format. What have I done wrong? This is on Win Xp Pro and Access 2003. Please help. Thanks.
0
1534
by: Emily | last post by:
Imagine a world where everybody shares and has faith in each other. We have all struggled at one time or another with our jobs or careers and have wondered if there was a better way to make a living. What if the solution was just to help each other, simply by giving and receiving. This would be a radical global experiment in faith. Imagine...
6
3064
by: Rajesh | last post by:
Hi, We are tyring to build a DLL which will write the log data to a text file. Multiple executables should use this dll to write data to same text file. We are using a synchronized method (using TextWriter.Synchronized) for writing data to the text file. The class in the DLL (LogManagement) is implemented using the Singleton pattern. ...
8
4833
by: mc | last post by:
I would like to be able to send from an ASP.NET page an email which when recieved takes the form of a "Sharing Invitation for a RSS Feed" (http://office.microsoft.com/en-us/outlook/HA101595391033.aspx) I've found a MSDN article about it (http://msdn2.microsoft.com/en-us/library/bb176432.aspx) but that example is presented as a vb(a) script...
7
1274
eragon
by: eragon | last post by:
Hello, my friends and i are on the school newspaper team, and we both own laptops we take to school with us, but when were at home we can't see what eachother are doing with the newspaper. One of the things i came up with is using Windows Messenger with program sharing. That makes the program show up on the other comp., but the other computer...
0
1708
by: Dom Rout | last post by:
Hello. Well, this is my first post on any USENET group anywhere, so I hope I get it right. Basically, I just want to get some opinions on a plan of mine for a new project. I want to produce a small, peer to peer, file sharing network for the use of myself and some of my friends. The purpose of this is basically to allow us to share files...
0
7416
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7360
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7600
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
5899
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4906
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3403
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3400
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1833
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
653
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.