tags:

views:

527

answers:

4

How to run the exe file to other system?

Using VB 6

I copied the exe file to other system, then run that exe file, it not working it showing error “component comdlg32.ocx or one its dependencies not correctly registered a file is missing or invalid”`

Can any one help me how to avoid this error?

+6  A: 

When deploying VB6 applications, you should create a Setup, this will manage the DLL's that the VB6 application depends on. Since it is not enough to just copy the .Exe and .Dll's. You also need to register them.

The creation of the setup is included in the VB6 environment.

GvS
How can i make?
Gopal
It's been a long time since I had a running VB6 environment. Read this for more information: http://visualbasic.about.com/od/quicktips/qt/vb6pack_deploy_wiz2.htm, or search google for "VB6 create setup.Exe"
GvS
Actually, because of the difficulty we had deploying VB6, we decided to use .Net. Life (at least deployment) will be much easier when you use VB.Net.
GvS
+1  A: 

Copy and register the comdlg32.ocx on other system. Link: Fix Missing Comdlg32.ocx Run time Error in Portable apps.

Create an installer for your program.

Icebob
+2  A: 

You can read this http://support.microsoft.com/kb/830761 which is very comprehensive.

[1]: http://support.microsoft.com/kb/830761 for more information.

Or if you just want the redistributable files check this kb http://support.microsoft.com/kb/290887

vikash
Your first link says quite explicitly: "The VBRun60sp6.exe file is not intended to replace the Package and Deployment Wizard (PDW) for distributing Visual Basic applications."
Bob Riemersma
A: 

Unless you are deploying your program to really old versions of Windows (prior to XP), one nice alternative is to create an XCopy package using reg-free COM. This is fairly easy for most simple programs using Make My Manifest though it can be done by hand or using other tools if you invest in a little study.

Even then a formal installer package is usually desireable though, if nothing else to create Start Menu shortcuts and set up application workspace directories.

Keep in mind that even the PDWizard is difficult to use blindly. Packaging and deployment is a topic that requires some learning investment.

Bob Riemersma