473,770 Members | 5,569 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3121
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*****@discus sions.microsoft .com> wrote in message
news:64******** *************** ***********@mic rosoft.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*****@discus sions.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.co m>
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*****@discus sions.microsoft .com> wrote in message
news:64******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:9D******** *************** ***********@mic rosoft.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*****@discus sions.microsoft .com> wrote in message
news:64******** *************** ***********@mic rosoft.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
3011
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 homework for me.. I am merely asking for help, perhaps pointers as to where to begin.. I've never used access before.. I'm rather cluey when it comes to
8
2707
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 framework 1.1 and web matrix is used for asp .net code
5
354
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 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...
15
3227
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 their time to create Linux RPMs. The main thing I need are people willing to test the binaries to make sure the extension is stable. This would require installing the binary and probably downloading the source too to get the developer's test
11
2436
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 machine will it work or do I need to make sure that I have dot net installed and all of this ? What is the best way to build an .exe so that I can run it on most machines without any updates?
0
9592
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10059
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9871
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7416
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6679
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3972
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
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.