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.
[Version]
Signature=$CHICAGO$
AdvancedINF=2.5
[DefaultInstall]
RegisterOCXs=RegisterOCXSection
[Uninstall]
UnRegisterOCXs=RegisterOCXSection
[RegisterOCXSection]
%<LDID>%\<subdir>\<OCX file name>,<flag,<parameter>>
Flag | Description |
---|---|
I | Call DllRegisterServer and DllInstall |
N | Do not call DllRegisterServer, only DllInstall |
This becomes available when a flag is used. You may pass a string as a parameter for DllInstall.