Solved

Stand alone exe using Visual Studio

Posted on 2008-10-30
4
3,064 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
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 85

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unable  to create new object 9 41
Name space syntax error 12 44
What .NET URL re-routing tool did I use? 2 37
Web Form VB.Net  import CSV 4 27
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

867 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now