PDA

View Full Version : HOWTO: Register an ActiveX Control



Support
09-27-2002, 03:13 PM
<HTML><HEAD><TITLE>HOWTO: Register an ActiveX Control</TITLE></HEAD><BODY><h3>HOWTO: Register an ActiveX Control </h3><b>Document ID: IR02013</b><hr>The information in this article applies to:<ul><li>Setup Factory 6.0</li></ul><hr><h3>SUMMARY</h3><p>This article explains how to register an ActiveX control.</p><h3>DISCUSSION</h3><p>An ActiveX control is basically a component that contains reusable code. ActiveX controls allow you to embed software into a control that can then be used by different programs on the system. ActiveX controls let you add pre-made functionality to your software quickly and easily.<br><br>So if another company made an ActiveX control that connects to the Internet, you could use the control to quickly add Internet connectivity to your program.<br><br>When redistributing ActiveX controls it is important to remember that in order for an ActiveX control to function properly it must be registered with the operating system. In other words ActiveX controls must be registered before other programs can access them.<br><br>Setup Factory makes registering ActiveX controls quite easy. There are two possible methods for registering any ActiveX controls that you may be distributing:<br><br><ul><li>The <b>Register file</b> action</li><li>The Settings tab on the <i>File Properties</i> dialog</li></ul>The easiest method for registering your ActiveX control is using the <i>File Properties</i> dialog. To register your ActiveX control, simply add it to your Setup Factory installation and then double-click on the file to bring up the <i>File Properties</i> dialog. Go to the Advanced Tab and check the <b>DLLRegisterServer</b> checkbox. This will tell Setup Factory to try to register the file during the installation.<br><br><b>Tip</b>: Before checking the <b>DLLRegisterServer</b> checkbox press the <b>Scan for DLLRegisterServer Support</b> button to the right of the checkbox to make sure that your ActiveX control properly supports the DLLRegisterServer interface.<br><br>The other way to register your ActiveX control is the <b>Register file</b> action. This action takes one parameter: <b>File name</b>, which is the full path to the control that you want to register. This action functions in the same way that the <b>DLLRegisterServer</b> checkbox does, except you can schedule this action to occur at any time during the installation. You should use this action instead of the <b>DLLRegisterServer</b> checkbox if:<br><ul><li>You are registering files that were not included with your installation</li><li>You need to register a file before the actual installation of your program</li></ul><br><b>Tip</b>: Use the <b>Register file</b> action on the "On Startup" event in conjunction with Setup Factory's <b>Primer Files</b> feature to ensure that your file is registered at the beginning of your installation.<br></p><h3>MORE INFORMATION</h3><p>For more information please see the following topics in the Setup Factory 6.0 Help:<br><br><li><b>Command Reference | Actions | Individual Actions | Register File</b></li><li><b>Command Reference | Design Environment | Dialogs | File Properties | File Properties dialog</b></li><li><b>Command Reference | Primer Files | What Are Primer Files</b></li><li><b><A HREF="http://www.microsoft.com/com/tech/activex.asp" target="blank">Microsoft's ActiveX control home page</a></b></li></p><p>KEYWORDS: Setup Factory, ActiveX, DLLRegisterServer</p><hr><FONT SIZE=1>Last reviewed: October 10, 2002<br>Copyright 2002 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br></FONT></BODY></HTML>