.Net Framework

S

Steve

I have written a small program and created a set up and deployment package.
I burned the files to cd and took them to another computer. When I click
the set up file or the .msi file I get the following error message:

This set up requires the .Net Framework version 1.1.4322. Please install
the .Net Framework and run this setup again. The .Net Framework can be
obtained from the web. Would you like to do this now?



When I bought Visual Studio .Net 2003, I downloaded the framework onto my
computer, the one I created the program on. I know the computer I ran the
setup on does not have it. Is there anyway to create a program where the
..Net Framework is not required? When I distribute the application I do not
want to include the .Net Framework because I would like to do it by e-mail
so I want the file size to be as small as possible. I am new to Visual
Studio. I am trying to teach myself. Any help would be greatly
appreciated.
 
H

Herfried K. Wagner [MVP]

Steve said:
I know the computer I ran the setup on does not have it. Is there anyway
to create a program where the .Net Framework is not required? When I
distribute the application I do not want to include the .Net Framework
because I would like to do it by e-mail so I want the file size to be as
small as possible.

That's not supported out of the box. You will have to distribute the .NET
Framework with your application.

Deploying the .NET Framework in a setup package
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=deployframework&lang=en>

There are some solutions, but most of them don't make much sense for
me in general. They are expensive and don't bring any benefit in most
cases.

<URL:http://www.remotesoft.com/>
-> "Salamander"

<URL:http://www.lesser-software.com/> is working on a tool to compile Win32
applications from .NET source.

Thinstall
<URL:http://thinstall.com/dotnet/>
 
C

Clark Sann

Steve,

Trying to run a VB.Net program without the DotNet framework is like trying
to run a windows app without windows. Just can't be done. The framework is
all the guts that take your VB program and turn it into machine language.
So, without a doubt, your users will need to have the framework.

Do a little reading about the CLR (Common Language Runtime). You will find
it interesting reading. Basically, when you compile and then distribute an
app, you are distributing a program which has been compiled down to CLR
code. This happens with all .net languages. VB compilation generates CLR
code. C# programming generates CLR code. Now CLR code will not run on any
processor until it has been converted to machine code. That is the job of
the framework. It intreprets the CLR and generates machine code as the
program is run. So the framework is absolutely necessary if a user wants to
run .net programs.

If they keep their windows updated, it will be there automatically.
Otherwise they will need to get it. As time goes on, the framework will
become more commonplace. XP and Win2000 already come with it (might be
version 1, can't remember). But if your users have kept updated through
Windows Update, they should already have .net 1.1. Someday, MS will release
..net 2 via windows update, probably later this year. NT and 98 didn't have
the framework since it hadn't been invented yet. Whatever replaces XP will
for sure have it in the future. So this will become less and less of a
problem as time goes on.

One other thing, if you do anything database related, you will need MDAC
(Microsoft Data Access Component). So your customers may need to get two
different updates.

Best regards,

Clark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top