Microsoft KB Archive/145723

= How To Modify SWDEPEND.INI for Your OLE Custom Control =

Article ID: 145723

Article Last Modified on 7/1/2004

-

APPLIES TO


 * Microsoft Visual Basic 4.0 Standard Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition

-



This article was previously published under Q145723



SUMMARY
This article gives you the information you will need to modify the SWDEPEND.INI file so that Visual Basic's Setup Wizard generates a Setup program that correctly installs your control.



MORE INFORMATION
Create a section in the SWDEPEND.INI file. The section's name should be the filename of your control, including the OCX extension. For example, for OLE controls created using Microsoft Foundation Classes version 3.0, the new section would look like this: [MYCTRL.OCX] Register=$(DLLSelfRegister) Dest=$(WinSysPath) Uses1=MFC30.DLL Uses2=OC30.DLL ... The complete list of files that you need to list as dependencies will depend on the options you used to build the control. Second example: For OLE Controls created using Microsoft Foundation Classes version 4.0, the new section would look like this: [MYCTRL.OCX] Register=$(DLLSelfRegister) Dest=$(WinSysPath) Uses1=OCX Runtime Support

