Skip to content
⌘ NSIS Forum Archive

how to register an OCX?

6 posts

Martin_caceres#

how to register an OCX?

I have tried with:
Execshell '"$WINDIR\OCX\vbalGrid6.ocx" /regserver'
Exec '"$WINDIR\OCX\vbalGrid6.ocx" /regserver'
Exec '"$WINDIR\OCX\vbalGrid6.ocx" /regsvr32.exe'

what I'm doing wrong?
v-tal#
Re: how to register an OCX?

Originally posted by Martin_caceres
I have tried with:
Execshell '"$WINDIR\OCX\vbalGrid6.ocx" /regserver'
Exec '"$WINDIR\OCX\vbalGrid6.ocx" /regserver'
Exec '"$WINDIR\OCX\vbalGrid6.ocx" /regsvr32.exe'

what I'm doing wrong?
OCXes couldn`t be executed directly, because of they are just kind of DLLs.
So if you use Exec function, type 'regsvr32.exe "$WINDIR\OCX\vbalGrid6.ocx"'.
Martin_caceres#
thanks!
I tried with RegDLL and it's working now (I thought RegDll was only for dll's!!!).