Shoutbox

VB Publishing - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: VB Publishing (/showthread.php?tid=69714)

VB Publishing by ryxdp on 12-20-2006 at 06:05 AM

I have lots of projects on VB Express 2005. I want to publish them as standalone *.exe files, but I see no option for that. All I see is the publish to web server and publish to CD. I want all my files to package into one .exe standalone so that when run, you do not need to install it or anything. How do I do this?


RE: VB Publishing by bladeswords on 12-20-2006 at 06:34 AM

I am not sure if this is the correct way to do it, but Visual Studio 2005 creates the .exe file every time you test it out.  This file is the same as the published file and it can be found under the project directory in \bin\Debug then there will be what ever your project is called .exe

(sorry this is breif and confusing...I can explain better if you need it)


RE: VB Publishing by ryxdp on 12-20-2006 at 08:34 AM

Yes I know all about that.

I have tried sending a test program as that .exe to another person who didn't have VB or anything and it didn't work. It obviously needs the program resources or something, i think.


RE: VB Publishing by bladeswords on 12-20-2006 at 10:04 AM

Oh, that is because they need .NET Framework 2.0 installed for them to use it.  It is freely avaliable from the Microsoft Site here


RE: VB Publishing by andrewdodd13 on 12-20-2006 at 05:53 PM

As blades said, you want them to install the .NET Framework (Version 2), from Windows Update or wherever. It's roughly 20mb.

Also, you'll want to use the program created in the Release output folder, rather than the debug version. If there's nothing in that folder, go to the Visual Basic menu and find "Build".


RE: VB Publishing by CookieRevised on 12-20-2006 at 07:08 PM

quote:
Originally posted by Snaal Sevool Snr.
I have lots of projects on VB Express 2005. I want to publish them as standalone *.exe files, but I see no option for that.
Because there is no option for that in the "Express" version. You need to buy VB6 the home or pro or whatever edition for that (I meant the full product, I know VB6 is not .NET, just a stupid typo).

quote:
Originally posted by bladeswords
Visual Studio 2005 creates the .exe file every time you test it out.
No.... It doesn't create a standalone exe when you don't tell it to.

When you run code it's run in the debugger in P-code, and the only "exe" made is not a compiled standalone one. Making a standalone exe is compiling a program, which isn't possible with the free "Express" version.

RE: VB Publishing by Adeptus on 12-20-2006 at 10:10 PM

If "standalone .exe"  means an executable file that can be run on other computers with .NET framework v2.0 runtime installed, then the Express Edition will work just fine. 

If "standalone .exe" means an executable that can run on any Windows computer without requiring .NET framework (the preferred term is "unmanaged code"), then no edition of Visual Studio 2005 will help you there.  Visual Basic has become Visual Basic .NET and current development tools from Microsoft don't offer it any other way. 

The debug versions of .NET executables are no less and no more "p-code" (the preferred term is "Intermediate Language", IL) than release versions.  Just the same as it is with unmanaged code, the debug versions include symbol information and are not optimized (to enable faster build times).

Visual C++ continues to support unmanaged code projects. With some limitations, that also includes the free Visual C++ 2005 Express Edition.   If you want to create unmanaged code software, Microsoft wants you to use C++.

VB6 is a legacy product.  While it does compile to unmanaged code (requiring a runtime library of its own, however), I would not recommend investing money and time in it to anyone who doesn't use it already.


RE: VB Publishing by bladeswords on 12-20-2006 at 10:46 PM

Thank you Adeptus.  That is what I thought, I just wasnt sure.  (I am downloading Visual Basic Express to test it all out)


RE: VB Publishing by ryxdp on 12-21-2006 at 07:15 AM

I'll check with the person I sent it to if they had .NET 2.0.

Some of my programs work on a fairly new computer of my friend's who has all the latest stuff etc. and my version of VB.^o)

Doesn't it prompt you to install .NET 2.0 on the installer?*-)


RE: VB Publishing by bladeswords on 12-21-2006 at 08:38 PM

I am not sure what you mean by "Doesn't it prompt you to install .NET 2.0 on the installer?" if you mean the Visual Studio installer or your program.  If you mean Visual Studio, then yes it does install .NET 2.0.  If you mean your program, then no, unless you have packaged .NET 2.0 with it.


RE: VB Publishing by ryxdp on 12-21-2006 at 09:18 PM

former.:D

My programs are small really. But very usefulless (to me anyway). I don't really know a lot of VB anyway...


RE: VB Publishing by bladeswords on 12-21-2006 at 09:33 PM

Cool, mind telling what your programs actually do?  Or just an exampled (i am interested)

Also here is the link to .NET 2.0 (Maybe burn it to CD if your firends have slow internet) or make them update their computers!!!

http://www.microsoft.com/downloads/details.aspx?F...4f5&displaylang=en


RE: VB Publishing by ryxdp on 12-22-2006 at 05:27 AM

Well just recently I made a client for one of the local radio stations(saved me going to the site all the time).

I've got some other stuff like a mini quicktime/wmp player (useless really) and...

*Ryxpia goes into vb folder to see what else

For some reason I made a demo for Timers...and what you can do with them on progress bars.

My not-so-great web browser (it's better than the one in the tutorial, anyway :P)

I also created this runescape thing sorta like RS explorer or whatever it's called, except it uses WebBrowsers in tabs (one for rs site, one for runehq).

Just ask if you want any of these (if you do, you're odd, none of them is even slightly useful :P)


RE: VB Publishing by bladeswords on 12-25-2006 at 12:25 AM

Does it work now for your friend after installing .NET 2.0


RE: VB Publishing by ryxdp on 12-25-2006 at 03:47 AM

yeah, seems to.

ty for your...err...help.:P