Archive: Registring .OCX?


Registring .OCX?
Hey i'm a newbie here, and my question is probably very newblie-like i just couldn't find an answer for it:
Is it possible to register an ocx file with NSIS, and if it is - how do i do it? RegisterDLL doesn't seem to work ;)



SetOutPath $SYSDIR
File comdlg32.ocx
RegDLL "$SYSDIR\comdlg32.ocx"

works fine for me. Assuming you're using 'RegDLL' and not 'RegisterDLL', maybe the OCX you're trying to register is broken somehow


That is excatly what i'm doing. I even tried to copy and register from $InstDir instead - some people get error when running the installer - everybody who needs the .ocx's installed.

The ocx's are not broken since i'm using them myself... i really don't understand what's wrong :(


Ok my mistake :( $SYSDIR is not the same as $SysDir... doh!