By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,646 Members | 2,098 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,646 IT Pros & Developers. It's quick & easy.

stand alone .exe output from vb 2005

P: 6
Is there a way to create a stand alone .exe from VB2005, that does not depend upon the .NET framework being installed on the target machine?

I have followed previous threads on this subject and not seen a definitive answer.

What I want to do is create an .exe that has all of the .dll etc required to run on both XP and 98 operating systems, and does not require that the .NET framework be downloaded to the machine. Many of the targets are stand alone computers without internet connection.

Dev environment:
XP Professional
Visual Studio 2005 standard edition
Visual Basic 2005

Thanks, Clint
Nov 22 '06 #1
Share this Question
Share on Google+
10 Replies


Expert 5K+
P: 8,434
Is there a way to create a stand alone .exe from VB2005, that does not depend upon the .NET framework being installed on the target machine?
I seriously doubt it. But then, I'm a VB6 developer so what do I know?
My guess is you'd get a much better response to this one in the .Net forum. If you already posted it there as well, then just forget I said anything.
Nov 24 '06 #2

100+
P: 1,646
Is there a way to create a stand alone .exe from VB2005, that does not depend upon the .NET framework being installed on the target machine?

I have followed previous threads on this subject and not seen a definitive answer.

What I want to do is create an .exe that has all of the .dll etc required to run on both XP and 98 operating systems, and does not require that the .NET framework be downloaded to the machine. Many of the targets are stand alone computers without internet connection.

Dev environment:
XP Professional
Visual Studio 2005 standard edition
Visual Basic 2005

Thanks, Clint
Hi Clint
Not a chance. You will have to revert to good old vb6 to do that. :(

There is no half way house betwen vb and .NET it is all or nothing.
the .NET runtime is free so you could install it as part of your app install. You only need to download it once and put it on a cd.

Good luck
Nov 24 '06 #3

P: 6
Thanks to both of you for your prompt replies. Looks like VB6 is the answer.

Clint
Nov 25 '06 #4

Expert 5K+
P: 8,434
Thanks to both of you for your prompt replies. Looks like VB6 is the answer.
Hey, how about that? Our first conversion! :)

Way to go, Will.

Nov 25 '06 #5

P: 6
Well, it's more like a retroversion ...
Clint
Now to find a copy of vb6 at a reasonable price.
Nov 25 '06 #6

Expert 5K+
P: 8,434
Well, it's more like a retroversion ...
Clint
Now to find a copy of vb6 at a reasonable price.
Good luck! I don't think it's sold any more. eBay perhaps?
Nov 25 '06 #7

P: 6
Yes, eBay does have copies available, probably at more than the original price
Nov 25 '06 #8

P: 2
Wait a minute...

In vb 2005 express
If you publish a solution, then run the 'Setup' that is created... the .exe file is created somewhere in:
  • C:\Documents and Settings\<Username>\Local Settings\Apps\2.0
For example:
I have a project called "AntToDo":
  1. Publish
  2. Run Setup
  3. Go through folders:
C:\
.. Documents and Settings\
.... Ashudson\
...... Local Settings\
........ Apps\
.......... 2.0\
............ K9E9X64X.DAK\*
..............9CXYK5ZM.TBK\*
................ antt..tion_ed5f8b9373d0ea2f_0001.0000_b2a1b5ee1817 a299\*
And finally, we find my lovely .exe; complete with an icon:

It's very standalone-ish too... just copy the .exe file... I can even use this .exe on another computer without any setup.

Is this what you are looking for?


--------
*=these folders are created randomly (by the looks of it) and therefore will not be exactly the same on other computers
Oct 14 '07 #9

P: 2
Correction.... the other computer had .net Framework installed... I uninstalled it and sadly the conclusion is... .net framework IS required.

Why don't you just include .net framework installation with your setup. I mean... include the 'dotnetfx' setup file in the prerequisites:
  1. Locate:
    C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages
    DotNetFX\
  2. Then paste a copy of dotnetfx.exe (from microsoft website) inside .
  3. Open your VB project:
    Click Project > ProjectName Properties.... > Publish > Prerequisites
  4. Select the option "Download prerequisites from same location as my application"

Now when you setup the application on another computer and it doesn't have .net framework installed, it will install it. Simple.
Oct 14 '07 #10

P: 1
first, you have to go to the release file in your project directory then get the file <your project name>.exe
second , you have to download file .net framework v 2.0 from the internet
and install it in the prurpose computer then open your project and it will work directly
rabih kerdi ,lebanon
Apr 7 '08 #11

Post your reply

Sign in to post your reply or Sign up for a free account.