Wrox Programmer Forums
|
Visual Basic 2008 Essentials If you are new to Visual Basic programming with version 2008, this is the place to start your questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2008 Essentials section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 14th, 2009, 12:44 PM
Authorized User
 
Join Date: Jun 2008
Posts: 33
Thanks: 2
Thanked 0 Times in 0 Posts
Default Copying an EXE file

I want to be able to copy my vb projects exe file and put it on other computers and in a different location on my computer but unless the copied exe file is in the same folder as the original it wont run.

Are there settings I need to change or something I need to do to make this possible?

Thanks
 
Old July 14th, 2009, 08:45 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Though the Exe file contains the forms, classes and the logic of the program, there is no assurance that it will be executed properly in other machines. The main reason for this will be the additional controls and reference files (dlls) you would have used in that project.

VB 6.0 provides you an easy way of deploying the project. The Package and Development wizard (http://visualbasic.about.com/od/quic...eploy_wiz2.htm) takes care of it

For VB.Net projects you can use (http://www.devarticles.com/c/a/VB.Ne...VB.NET-Part-1/). You can also create a setup project (http://visualbasic.about.com/od/usin...etupProj01.htm)

Cheers
Shasur



Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)

Last edited by Shasur; July 14th, 2009 at 08:48 PM..
 
Old August 10th, 2009, 04:30 AM
Authorized User
 
Join Date: Aug 2009
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Best way, according to me is to copy source code and build exe on other computer.
I do it for almost 5 years and i never failed.
Or maybe better way is to publish program and install it on other computer.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying and connecting to a file metal2000man BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 0 May 31st, 2006 12:35 PM
image file copying! heerajee Pro PHP 2 March 22nd, 2006 06:19 AM
copying file from one machine to other CsharpHelp C# 0 October 23rd, 2005 05:22 AM
copying the file from one machine to other CsharpHelp C# 0 October 23rd, 2005 05:20 AM
Copying a File, How? xgbnow Visual C++ 3 September 16th, 2003 03:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.