Skip to content
⌘ NSIS Forum Archive

ExecShell & regsvr32 help

12 posts

[=hris#

ExecShell & regsvr32 help

I am trying to get my installer to register an ocx file using regsvr32.
When i do this manually, i use

C:\WINDOWS\system32\regsvr32.exe C:\WINDOWS\system32\MSwinsck.ocx

So, i tried to make this less OS specific and do it in the installer, with this command:

ExecShell open "$SYSDIR\regsvr32.exe $SYSDIR\Mswinsck.ocx"

When i run the installer, it says that it did execute the exact command i was expecting it to execute, but normally a message box pops up saying something along the lines of "Succesfully registered mswinsck.ocx in registry, but when the installer does it nothing happens - does anyone know if the installer has actually performed the command properly, cause i have no real way of telling 🧟

Thanks
[=hris#
Thanks - will change that 🙂
Where is regdll located?
I did a search, and it didnt find anything by that name?
[=hris#
got it, so i can do

RegDLL "$SYSDIR\MSwinsck.ocx"

And that will call the registry server just like using regsvr32.dll?