Old 5th August 2003, 10:08   #1
[=hris
Junior Member
 
Join Date: Aug 2003
Location: London, UK
Posts: 6
Unhappy 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 is offline   Reply With Quote
Old 5th August 2003, 10:10   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Try
Exec "$\"$SYSDIR\regsvr32.exe$\" $\"$SYSDIR\Mswinsck.ocx$\""

-Stu
Afrow UK is offline   Reply With Quote
Old 5th August 2003, 10:47   #3
[=hris
Junior Member
 
Join Date: Aug 2003
Location: London, UK
Posts: 6
Talking

Thanks, it works now
[=hris is offline   Reply With Quote
Old 5th August 2003, 11:41   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Why not just use RegDLL?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 5th August 2003, 12:43   #5
[=hris
Junior Member
 
Join Date: Aug 2003
Location: London, UK
Posts: 6
never used that before - what is the difference?
[=hris is offline   Reply With Quote
Old 5th August 2003, 12:50   #6
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
It's a better solution. It will work most definately on all Win OS'.

-Stu
Afrow UK is offline   Reply With Quote
Old 5th August 2003, 14:29   #7
[=hris
Junior Member
 
Join Date: Aug 2003
Location: London, UK
Posts: 6
Thanks - will change that
Where is regdll located?
I did a search, and it didnt find anything by that name?
[=hris is offline   Reply With Quote
Old 5th August 2003, 14:31   #8
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
It's a NSIS command. Search the NSIS documentation.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 6th August 2003, 07:46   #9
[=hris
Junior Member
 
Join Date: Aug 2003
Location: London, UK
Posts: 6
got it, so i can do

RegDLL "$SYSDIR\MSwinsck.ocx"

And that will call the registry server just like using regsvr32.dll?
[=hris is offline   Reply With Quote
Old 6th August 2003, 09:51   #10
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Yes, else it will print an error message I think?

-Stu
Afrow UK is offline   Reply With Quote
Old 6th August 2003, 12:31   #11
Sunjammer
Major Dude
 
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
The error flag is set if it can't register the DLL, see the docs for RegDLL and IfErrors.
Sunjammer is offline   Reply With Quote
Old 6th August 2003, 16:28   #12
[=hris
Junior Member
 
Join Date: Aug 2003
Location: London, UK
Posts: 6
ok, thanks i will try it later
[=hris is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump