Im trying to make my
own installer how would
I register a ocx?
I want to register mswinsck.ocx
Thanks!
Printable View
Im trying to make my
own installer how would
I register a ocx?
I want to register mswinsck.ocx
Thanks!
Gl,Code:Shell ("regsvr32.exe mswinsck.ocx")
D!m
So you dont have to give the
whole path right?
Correct. Think of Shell as typing into the Run Dialog. You don't need to specify C:\Windows\System\Regsvr32, just Regsvr32.
You do have to specify the path if the dll or ocx is not in the Win/System directory.
Code guru had some great code for doing this programmatically without calling shell, but I can't find it. Itis pretty prominent on the site - it was voted to best source last year if I recall correctly
- gaffa
WEll, try that, i'm sure you like the result better now ;)Code:Shell ("regsvr32.exe /h mswinsck.ocx")
Thanks all of you!