473,406 Members | 2,633 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.

Building EXE that works on other computers?

I've designed a very simple VB.NET project that uses the .NET framework
functionality to access registry keys. At the moment it pulls values from a
few keys and puts them into a listbox. The program works just fine and
compiles just fine, I set the build mode to release and built an EXE.
Whenever I try to run the EXE on any other computer I get this error: The
application failed to initialize properly (0xc0000135). Click on OK to
terminate the application. I understand that this probably has something to
do with the .net framework on other computers or lack thereof, but it must be
possible to compile an application that works on computers with older
versions of Windows or no .net framework etc. Do I need to include something
or compile differently? Please help.
Jul 21 '05 #1
5 3096
You need to include the .NET redistributable package in your installation
setup so that if a computer doesn't have the framework, your application
will install it.

"gabbott" <ga*****@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
I've designed a very simple VB.NET project that uses the .NET framework
functionality to access registry keys. At the moment it pulls values from
a
few keys and puts them into a listbox. The program works just fine and
compiles just fine, I set the build mode to release and built an EXE.
Whenever I try to run the EXE on any other computer I get this error: The
application failed to initialize properly (0xc0000135). Click on OK to
terminate the application. I understand that this probably has something
to
do with the .net framework on other computers or lack thereof, but it must
be
possible to compile an application that works on computers with older
versions of Windows or no .net framework etc. Do I need to include
something
or compile differently? Please help.

Jul 21 '05 #2
gabbott <ga*****@discussions.microsoft.com> wrote:
I've designed a very simple VB.NET project that uses the .NET framework
functionality to access registry keys. At the moment it pulls values from a
few keys and puts them into a listbox. The program works just fine and
compiles just fine, I set the build mode to release and built an EXE.
Whenever I try to run the EXE on any other computer I get this error: The
application failed to initialize properly (0xc0000135). Click on OK to
terminate the application. I understand that this probably has something to
do with the .net framework on other computers or lack thereof, but it must be
possible to compile an application that works on computers with older
versions of Windows or no .net framework etc. Do I need to include something
or compile differently? Please help.


See http://www.pobox.com/~skeet/csharp/f...ework.required

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

How do I get that package? Is there a way to add it as a reference so it is
automaticaly installs on the computer the program is run on? I want to hand
my program out and it would be easier than making them all install the
dotnetfx.exe program first.

Many thanks

James

"Scott M." wrote:
You need to include the .NET redistributable package in your installation
setup so that if a computer doesn't have the framework, your application
will install it.

"gabbott" <ga*****@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
I've designed a very simple VB.NET project that uses the .NET framework
functionality to access registry keys. At the moment it pulls values from
a
few keys and puts them into a listbox. The program works just fine and
compiles just fine, I set the build mode to release and built an EXE.
Whenever I try to run the EXE on any other computer I get this error: The
application failed to initialize properly (0xc0000135). Click on OK to
terminate the application. I understand that this probably has something
to
do with the .net framework on other computers or lack thereof, but it must
be
possible to compile an application that works on computers with older
versions of Windows or no .net framework etc. Do I need to include
something
or compile differently? Please help.


Jul 21 '05 #4
SB
If I were writing and application that simple, I'd just recode it in C/C++.
That way, it won't need the .NET framework installed at all. The framework
is WAY overkill for such a simple application anyway.

If you decide not to go that route, you must first face the fact that
writing .NET applications requires the .NET framework be installed. You can
provide the installation redistributable with your application and have your
installation software install that FIRST...and then your app.

You can download the v1.1 redistributable here:

http://www.microsoft.com/downloads/d...displaylang=en

Also, depending on the IDE that you're using, you may be able to just create
an installation project that does everything for you (Visual Studio 2003).
That will require a bit of research on your part but can be done without too
much trouble.

HTH,
sb

"James" <Ja***@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
Hello,

How do I get that package? Is there a way to add it as a reference so it
is
automaticaly installs on the computer the program is run on? I want to
hand
my program out and it would be easier than making them all install the
dotnetfx.exe program first.

Many thanks

James

"Scott M." wrote:
You need to include the .NET redistributable package in your installation
setup so that if a computer doesn't have the framework, your application
will install it.

"gabbott" <ga*****@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
> I've designed a very simple VB.NET project that uses the .NET framework
> functionality to access registry keys. At the moment it pulls values
> from
> a
> few keys and puts them into a listbox. The program works just fine and
> compiles just fine, I set the build mode to release and built an EXE.
> Whenever I try to run the EXE on any other computer I get this error:
> The
> application failed to initialize properly (0xc0000135). Click on OK to
> terminate the application. I understand that this probably has
> something
> to
> do with the .net framework on other computers or lack thereof, but it
> must
> be
> possible to compile an application that works on computers with older
> versions of Windows or no .net framework etc. Do I need to include
> something
> or compile differently? Please help.


Jul 21 '05 #5
SB wrote:
That way, it won't need the .NET framework installed at all. The framework
is WAY overkill for such a simple application anyway.
Yes.
If you decide not to go that route, you must first face the fact that
writing .NET applications requires the .NET framework be installed. You can
provide the installation redistributable with your application and have your
installation software install that FIRST...and then your app.


Yes, and then there's issues related to what version of the framework,
and what if the client at the other end does not wish to upgrade their
..NET at this tiem? They may be running business critical apps?

--
Gerry Hickman (London UK)
Jul 21 '05 #6

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

Similar topics

5
by: Bec | last post by:
I'm in desperate need of your help.. I need to build an access database and have NO idea how to do this.. Not even where to start.. It IS for school, and am not asking anyone to do my...
8
by: Vanga Sasidhar | last post by:
I have four computers. One computer - Win XP Two computers - Win 98 One computer - Win ME I designed some pages in my computer having Win XP operating system. I installed dot net...
5
by: gabbott | last post by:
I've designed a very simple VB.NET project that uses the .NET framework functionality to access registry keys. At the moment it pulls values from a few keys and puts them into a listbox. The...
15
by: kyosohma | last post by:
Hi, I am trying to get a small group of volunteers together to create Windows binaries for any Python extension developer that needs them, much like the package/extension builders who volunteer...
11
by: Jason | last post by:
Say I build a simple .exe file. n exe that will look at a file, read that file and put the contents into an email. If I take the .exe that I built from the Bin\Release folder and copy it to a...
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...
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
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,...
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
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
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,...
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.