My Account Subscribe Help About
Sign In | Register FREE
Friday, April 10, 2026
Man jailed for killing abused wife who jumped from bridgeCeasefire or no ceasefire, the Middle East's reshuffling is not yet doneMelania Trump denies ties to Jeffrey Epstein and urges hearing for survivorsSimple guide: How the Iran war is affecting the cost of holidays, food and clothesEU fingerprint and photo travel rules come into forceWant to help garden birds? Don't feed them in warmer months, says RSPBDublin Airport issues travel guidance as Irish fuel protests continueMen behind 'Tripadvisor for people smugglers' jailed for 19 yearsIran conflict must be 'line in sand' to build more resilient UK, Starmer saysBafta fell short in duty of care when racial slur was shouted, review findsExtra £5m pledged for patrolling places of worship'Endless fears': Even if fighting stops, the damage to Iran's children will endureLebanon thought there was a ceasefire - then Israel unleashed deadly blitzHow many ships are crossing the Strait of Hormuz?Has US achieved its war objectives in Iran?Can stats help you find the Grand National winner?This coat cost $248 in illegal tariffs. Will he ever get the money back?From a smuggled harmonica to Artemis' playlist - the history of music in spaceWeekly quiz: What might have made Paddington panic about his marmalade?How the Artemis crew will splash down on EarthLeBron and Bronny James record first son-to-father assist in NBA historyTen cases a day - 'blitz courts' could tackle the Crown Court backlog'I was in a slump - now my art is in Billie Eilish's house'Labrinth not involved in Euphoria's third seasonLava soars into air as Hawaii's Kilauea volcano erupts againWhite House staff told not to place bets on prediction marketsRussia and Ukraine agree to truce for Orthodox EasterBBC News appIs Defence Secretary Pete Hegseth waging a holy war against Iran?Defence secretary interview on Russian submarine operation
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.
« Back to Visual Basic « Back to FDN