472,127 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

stand alone .exe output from vb 2005

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
10 5451
Killer42
8,435 Expert 8TB
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
willakawill
1,646 1GB
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
Thanks to both of you for your prompt replies. Looks like VB6 is the answer.

Clint
Nov 25 '06 #4
Killer42
8,435 Expert 8TB
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
Well, it's more like a retroversion ...
Clint
Now to find a copy of vb6 at a reasonable price.
Nov 25 '06 #6
Killer42
8,435 Expert 8TB
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
Yes, eBay does have copies available, probably at more than the original price
Nov 25 '06 #8
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
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
rabi3
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.

Similar topics

9 posts views Thread by none | last post: by
121 posts views Thread by David Pendrey | last post: by
7 posts views Thread by Ulrich Wisser | last post: by
2 posts views Thread by skneife | last post: by
reply views Thread by leo001 | last post: by

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.