Solved

Stand alone exe using Visual Studio

Posted on 2008-10-30
4
3,068 Views
Last Modified: 2013-11-27
Hello everyone

I have a small program that use the System.Net namespace in Visual Studio. And it working fine after i compile it in Release mode on my computer. However, i can't run it on another computer that do not have .Net installed. I had been doing my research online and found that it is a requirement to run the redistribution packet from Microsoft first on the target computer.

Here come the problem. Is there any way of working around it? I do not want to run the redistribution packet or create a setup file (part of the client requirement). Is there a way to build a stand alone .exe file from Visual Studio 2008?

My program require the following file: System.dll, msvcrt.lib, msvcr90.dll.

Any help would be much appreciate
0
Comment
Question by:ken_thai
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 2

Assisted Solution

by:vbsquickresponse
vbsquickresponse earned 100 total points
ID: 22847291
To run dotnet application one must install dotnet runtime - its similar concept as in java - to run java application on client machine it requires java runtime.

when you compile dotnet code its not compile to binary code instead it compile to IL code. to make your exe machine independent ie can run on any version of windows platform.
0
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 22847588
It's not a cheap option to go for...

Several products exist that let you do this.

ThinApp (formerll ThinStall) is one:
http://www.vmware.com/products/thinapp/
0
 
LVL 2

Assisted Solution

by:crystyce
crystyce earned 150 total points
ID: 22848140
I think the best way to go is to make your program using unmanaged C++ (MFC). It won't require .net to be installed, and if you build it static, not even the c++ redist.
0
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 250 total points
ID: 22848159
If you did NOT use any .net components (involves you rewriting the app - and it may well run faster after you did that) then the answer is yes.  Otherwise you will require .net components in one way or another.
Simplest would be to install them on the client machine via the redisrtibutable package (see the first experts comments) - note that it is more and more likely other apps will also require the .net components.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question