Friday, June 5, 2026 Sign InRegister FREE My Account Help
FDN Portal
FDN » Visual Basic » Deploying VB Applications

Deploying VB Applications

Deploying VB Applications

VB6 applications require the Visual Basic runtime (msvbvm60.dll) and any referenced COM components to be installed on the target machine.

Package and Deployment Wizard

The built-in Package and Deployment Wizard (PDW) creates installers:

  1. Open VB6 and load your project.
  2. Go to Add-InsPackage and Deployment Wizard.
  3. Select Package to create a distributable.
  4. Choose Standard Setup Package.
  5. Select the build folder.
  6. The wizard detects dependencies (DLLs, OCXs, runtime files) and includes them.
  7. Choose Single cab for CD/network distribution or Multiple cab for floppy disks.
  8. Click Finish. The wizard creates setup.exe and associated .cab files.

Required Runtime Files

FileDescription
msvbvm60.dllVB6 runtime (always required)
oleaut32.dllOLE Automation (usually present on Win2K+)
olepro32.dllOLE Property support
mscomctl.ocxCommon controls (ListView, TreeView, ImageList)
mscomct2.ocxAdditional controls (DatePicker, MonthView)
comdlg32.ocxCommon Dialogs (Open, Save, Print)
mswinsck.ocxWinsock control
msado28.tlbADO 2.8 type library

COM Registration

ActiveX DLLs and OCXs must be registered on the target machine:

REM Register a COM DLL
regsvr32 MyComponent.dll

REM Unregister
regsvr32 /u MyComponent.dll

Troubleshooting

  • "Component not registered": Run regsvr32 on the missing DLL/OCX.
  • "Run-time error 429: ActiveX component can't create object": The referenced component is not installed or registered.
  • Version conflicts (DLL Hell): Ensure the correct version of shared components is installed. Use the PDW to deploy the correct versions.
  • Windows XP compatibility: VB6 SP6 applications are compatible with Windows XP. Set the compatibility mode in the manifest if needed.
« Previous VB6 Database Programming
Next » Getting Started with VB6
More in Visual Basic
« Back to Visual Basic « Back to FDN
FlameNet Weekly: the best of the forum, freshest listings, top Q&A — delivered every Sunday.
13 members · 0 new today · 0 online now · 777 posts in last 24h