The information in this article applies to:
SUMMARYMicrosoft 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:
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 or Windows\Command folder on Windows NT or Windows 95 or Windows 98. 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 please see the following article in the Microsoft Knowledge Base: Q191212 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\PDWizardTo 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: Q191212 HOWTO: Modify and Rebuild .cab Files Built with PDW For additional information about Makecab.exe and DDF files, refer to the CAB Software Development Kit (SDK) available at the following Web site: http://www.microsoft.com/workshop/management/cab/cabdl.asp 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://www.microsoft.com/windows95/downloads/contents/wutoys/w95pwrtoysset/ 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), which is available at the following location: http://www.microsoft.com/workshop/management/cab/cabdl.asp Copy the file into the System (or System32) folder. 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:
Regsrv32.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.Regsrv32.exe is installed with Microsoft Visual Basic and can be found in the System (or System32) directory. When used, Regsrv32.exe attempts to load the component and call it's DLLSelfRegister function. If successful Regsrv32.exe displays a dialog indicating success. If the registration fails, Regsrv32.exe returns a basic error code. To use the Regsvr32.exe utility to register a component perform the following steps:
REGSRV32.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\RegutilsCopy 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\RegutilsCopy the file into the System (or System32) folder. To use the Regit.exe utility perform the following steps:
Depends.exeDepends.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 invaluable 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\DependCopy all the files from the Depend folder into the System (or System32) folder. To use depends.exe, perform the following steps:
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\CabinetsFrom 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: Q192461 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, please refer 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 Support 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
The Cabinet Software Development Kit (CAB SDK) is available for download at
the following Web URL: Additional query words:
Keywords : kbwizard kbAddIn kbAppSetup kbDeployment kbVBp kbVBp600 kbCodeDownload kbGrpVB |
Last Reviewed: January 12, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |