INFO: Useful Tools for Package and Deployment Issues
This article was previously published under Q198038 On This PageSUMMARY
Microsoft Visual Basic ships with the Package and Deployment Wizard (PDW),
a tool designed to aid developers in packaging and deploying their
Microsoft Visual Basic applications. Packages created with the PDW use
compressed cabinet files (.cab files) for distribution. This article
discusses several utilities that may be used to modify, view or manipulate
cabinet files. As well, during the distribution process, problems may arise
when deploying applications to various environments or when testing. This
article also discusses some tools that may be useful for troubleshooting
application deployment issues.
MORE INFORMATION
This article discusses the following utilities:
Utility Description
------------------------------------------------------------------
Extract.exe Extract files from a CAB file.
Makecab.exe Builds CAB Files.
Cabview View/Manipulate the contents of a CAB file.
Cabarc.exe Build and extract files from a CAB file.
Regsvr32.exe Registers ActiveX Components.
Regocx32.exe Registers ActiveX Controls (.OCX Files).
Regit.exe Registers in process ActiveX servers (.OCX/.DLL Files).
Depends.exe View file dependencies.
Depends.exe Profiling Options.
Filemon.exe Monitors file access activity.
Regmon.exe Monitors registry access activity.
Clireg32.exe Registers Distributed Component Object Model Components
on Client computers.
Vbrun60.exe Installs core Visual Basic files.
Setup Toolkit Used to customize Visual Basic application Installations.
Extract.exeExtract.exe is a utility that allows you to extract all files or specific files contained within a cabinet (.cab) file.The Extract.exe utility is found in your Windows, Windows\System32 or Windows\Command folder on Windows NT, Windows 2000, Windows Me, Windows 98, or Windows 95. It may also be found on your Windows installation CD-ROM. To use the Extract.exe utility perform the following steps:
EXTRACT.EXE /?
For additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
191212 (http://support.microsoft.com/kb/191212/EN-US/) HOWTO: Modify and Rebuild .CAB Files Built with PDW
Makecab.exeMakecab.exe is a utility that allows you to take existing files and package them into a cabinet (.cab) file. This may be useful if you have extracted files from a .cab using the Extract.exe utility and then would like to repackage the files into the cabinet.The Makecab.exe utility is installed by Microsoft Visual Basic and may be found in the following folder by default:
C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard
To use the Makecab.exe utility, perform the following steps:
For additional information on the Makecab.exe command line parameters, execute the following command from an MS-DOS Command line:
MAKECAB.EXE /?
For additional information please see the following article in the
Microsoft Knowledge Base:
191212 (http://support.microsoft.com/kb/191212/EN-US/) HOWTO: Modify and Rebuild .CAB Files Built with PDW
CabviewCabview is a Windows 95/Windows 98 PowerToy utility that allows you to graphically view and manipulate the contents of a .cab file. Windows 98 has Cabview installed natively as part of the operating system.For Windows 95, CABVIEW is available at the following location: http://download.microsoft.com/download/5/2/e/52e8fd68-e528-4995-abe2-5644583536e1/W95powertoy.exe (http://download.microsoft.com/download/5/2/e/52e8fd68-e528-4995-abe2-5644583536e1/w95powertoy.exe)
Refer to the download page for the Cabview utility for instructions on how
to install the utility.
Cabview provides a graphical view of the contents of a .cab file similar to Windows Explorer. This allows easy file manipulation through drag-and-drop of files to and from the .cab file. To use Cabview, perform the following steps:
Cabarc.exeCabarc.exe is another CAB file manipulation utility. With Cabarc.exe you can create new .cab files, extract files and list the contents of a .cab file. Cabarc.exe does not allow adding additional files to an already existing .cab file, however.Cabarc.exe is available with the CAB Software Development Kit (SDK). Cabarc.exe's best feature is the ability to list information about the files contained within a CAB file in an orderly way (better than Extract.exe). To view the contents of a .cab file with Cabarc.exe, perform the following steps:
Regsvr32.exeRegsvr32.exe allows you to register/un-register DLL and OCX files that are self-registerable. Regsvr32.exe provides rudimentary error codes as well as a silent install option.Regsvr32.exe is installed with Microsoft Visual Basic and can be found in the System (or System32) directory. When used, Regsvr32.exe attempts to load the component and call it's DLLSelfRegister function. If successful Regsvr32.exe displays a dialog indicating success. If the registration fails, Regsvr32.exe returns a basic error code. To use the Regsvr32.exe utility to register a component perform the following steps:
REGSVR32.EXE /?
Regocx32.exeRegocx32.exe is used to register ActiveX controls. This utility is designed to work with setup programs and does not offer any user interface. This is helpful when using an installation program/script that needs to shell out to register ActiveX controls.Regocx32.exe ships with Microsoft Visual Basic and is located on the installation CD at the following location:
\Common\Tools\VB\Regutils
Copy the file into the System (or System32) folder.
To use the Regocx32.exe utility perform the following steps:
Regit.exeRegit.exe allows you to register DLL and OCX files that are self- registerable. Regit.exe accepts multiple filenames and wildcards, allowing numerous components to be registered at the same time. Regit.exe also provides basic error codes if a component will not register.Regit.exe ships with Microsoft Visual Basic and is located on the installation CD at the following location:
\Common\Tools\VB\Regutils
Copy the file into the System (or System32) folder.
To use the Regit.exe utility perform the following steps:
Depends.exeThe Dependency Walker, Depends.exe, is used to determine the explicit dependencies a file has. A dependency is a secondary file, which is necessary for a file to load/run properly. For example, a Microsoft Visual Basic application is dependent upon the Microsoft Visual Basic run-time files.Depends.exe also presents plenty of valuable information about dependent components, such as their export table, internal version number, and so forth. Depends.exe ships with Microsoft Visual Basic and is located on the installation CD's at the following location:
\Common\Tools\VB\Unsupprt\Depend
Copy all the files from the Depend folder into the System (or System32)
folder.
To use depends.exe, perform the following steps:
Depends.exe Profiling OptionsTo download a later version of the Dependency Walker utility, visit the following Dependency Walker Web site:http://www.dependencywalker.com (http://www.dependencywalker.com)
Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
The later versions provide a profiling option that allows you to monitor the loading and the running of an application. To profile an application, follow these steps:
FileMon.exeYou can use the File Monitor utility (FileMon.exe) to monitor file access on a system in real-time. FileMon.exe can help you determine what application is modifying a file or is narrowing down errors such as "Access Denied." For more information about FileMon.exe, visit the following Sysinternals Freeware Web site:http://technet.microsoft.com/en-us/sysinternals/default.aspx (http://technet.microsoft.com/en-us/sysinternals/default.aspx)
Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
To use the File Monitor utility, follow these steps:
For more information about the FileMon.exe file, see the Utilities On-line help. RegMon.exeYou can use the Registry Monitor utility (RegMon.exe) to monitor registry access on a system in real-time. The RegMon.exe tool can determine what applications are reading and what applications are modifying the registry. To download this product, visit the following Sysinternals Web site: http://technet.microsoft.com/en-us/sysinternals/default.aspx (http://technet.microsoft.com/en-us/sysinternals/default.aspx)
Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
To use the Registry Monitor utility, follow these steps:
For more information about the RegMon.exe file, see the Utilities On-line help. Clireg32.exeClireg32.exe is a utility used to register remote server components onto client computers. This allows a client program to instantiate an object that resides on a remote computer through the Distributed Component Object Model (DCOM) or Remote Automation.Clireg32.exe is installed by Microsoft Visual Studio, and can be found in the following folder by default:
\Program Files\Microsoft Visual Studio\Common\Tools\
Clireg32.exe uses an ActiveX EXE/DLL's VBR file (Remote Automation
Registration File) to register a remote component onto a clients computer.
To use Clireg32.exe to register a remote server, perform the following steps:
CLIREG32.EXE /?
Vbrun60.exeThe Vbrun60.exe file contains the necessary run-time files needed to run an application written in Microsoft Visual Basic 6.0.The core run-time files for Microsoft Visual Basic include the following: Msvbvm60.dll Oleaut32.dll Olepro32.dll Stdole2.tlb Asycfilt.dll Comcat.dll The Vbrun60.exe file ships with Microsoft Visual Basic 6.0, and is located (in CAB format) on the installations CD-ROM at the following location:
\Common\Tools\VB\Cabinets
From time to time Microsoft releases a Service Pack for Microsoft Visual
Basic, which contains updates to the run-time files. You can locate the
most current version of the run-time in the following Microsoft Knowledge
Base article:
192461 (http://support.microsoft.com/kb/192461/EN-US/) FILE: VBRUN60.EXE Installs Visual Basic 6.0 Run-Time Files
To install the Microsoft Visual Basic 6.0 run-time, perform the following
steps:
For more information about the Vbrun60.exe file, see to the preceding Knowledge Base article. Setup ToolkitMicrosoft Visual Basic ships with the source code to the setup program used to install application distributions. This source code is usually located in the \Wizards\PDWizard\Setup1 directory where Microsoft Visual Basic is installed. You may modify this code to customize the setup package created by the PDW.NOTE: Microsoft Technical SupF194621port does not support the modification of the setup process or any of the setup files. Support is provided for the Package and Deployment Wizard on an "as is" basis only. REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
194022 (http://support.microsoft.com/kb/194022/EN-US/) INFO: Visual Studio 6.0 Service Packs, What, Where, Why
APPLIES TO
| Article Translations
|

Back to the top
