Unable to register OCX library
Posted: Thu Apr 12, 2007 11:02 am
I have tried everything to register an OCX library, and nothing seems to work. I have read everything here related to doing it, and followed all the suggestions, but no matter what, it does not get registered. The file is installed properly, but the REGISTER LIBRARY command always fails no matter where I put it. After installation, if I use REGSVR32.EXE, the control registers with no problem at all.
I have inserted the following code at various places in the script, and it always fails:
Register Library $TARGETDIR$\\ImageViewer2.OCX (get result into variable SUCCESS)
if Variable SUCCESS Equals FALSE
MessageBox: ImageViewer2.OCX Failed to register, The ImageViewer2.OCX file failed to register with the operating system. Contact the developer.
end
I have tried putting the code immediately after the Apply Install line in the script, and even at the very end of the script after all processing is complete, but it always returns FALSE and the control does not get registered.
How can I overcome this problem?
-- Martin
I have inserted the following code at various places in the script, and it always fails:
Register Library $TARGETDIR$\\ImageViewer2.OCX (get result into variable SUCCESS)
if Variable SUCCESS Equals FALSE
MessageBox: ImageViewer2.OCX Failed to register, The ImageViewer2.OCX file failed to register with the operating system. Contact the developer.
end
I have tried putting the code immediately after the Apply Install line in the script, and even at the very end of the script after all processing is complete, but it always returns FALSE and the control does not get registered.
How can I overcome this problem?
-- Martin