OCX Registration/UnRegistration


RegisterOCXs

IExpress's AdvPack INF file extensions can be used to properly register OCX's after installation.  You can also unregister your OCXs before they are deleted upon uninstall.


INF File Sections

[Version]
Signature=$CHICAGO$
AdvancedINF=2.5

[DefaultInstall]
RegisterOCXs=RegisterOCXSection

[Uninstall]
UnRegisterOCXs=RegisterOCXSection

[RegisterOCXSection]
%&ltLDID>%\&ltsubdir>\&ltOCX file name>,<flag,<parameter>>

Flag

FlagDescription
ICall DllRegisterServer and DllInstall
N Do not call DllRegisterServer, only DllInstall


Parameter

This becomes available when a flag is used.  You may pass a string as a parameter for DllInstall.