+ Post New Thread
Results 1 to 13 of 13
Windows Thread, Registering dll and OCX files on all clients in our school in Technical; Hi to all Hope everyone is well Please help me on a issue we have in our school. The maths ...
  1. #1
    ranj's Avatar
    Join Date
    Feb 2006
    Location
    Birmingham
    Posts
    730
    Thank Post
    99
    Thanked 42 Times in 32 Posts
    Rep Power
    25

    Registering dll and OCX files on all clients in our school

    Hi to all

    Hope everyone is well

    Please help me on a issue we have in our school.

    The maths department have purchased some software called "Car maths in motion" and its been an absolute pain to install but we have managed to get the software working on the server.

    As the software sits on a remote share when pupils try to execute the application it comes up with an error:

    "component picclp32.ocx or one of its dependencies not correctly registered: a file is missing or invalid"

    Basically it means the OCX file needs to be registered on every single workstation using the app.

    The question I have is there a way I can script something so that when a user logs on it can register the OCX file or is there a third party tool that would do this.

    Any help on this would be much appreciated. :?

  2. #2

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,846
    Thank Post
    3,359
    Thanked 1,061 Times in 981 Posts
    Rep Power
    366

    Re: Registering dll and OCX files on all clients in our school

    Create a vb script and assign it as either a logon or startup script ( cant remember which one ) on the correct OU for where the machines are that have this software installed.

    Code:
    Set oShell = CreateObject("Wscript.Shell")
    oShell.Run "RegSvr32 /s " & chr(34) & "Path\to\file.ocx" & chr(34)
    RegSvr32 switches

    /u = Unregister server
    /s = Silent; display no message boxes
    /i = Call DllInstall passing it an optional [cmdline]; when used with /u calls dll uninstall
    /n = do not call DllRegisterServer; this option must be used with /i

    chr(34)

    Used to add extra set of quotes " around a string. Used when passing to a cmdline or when there are spacing in the path you are using.

  3. #3
    ranj's Avatar
    Join Date
    Feb 2006
    Location
    Birmingham
    Posts
    730
    Thank Post
    99
    Thanked 42 Times in 32 Posts
    Rep Power
    25

    Re: Registering dll and OCX files on all clients in our school

    thanks for that, is that all the code.

  4. #4

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,846
    Thank Post
    3,359
    Thanked 1,061 Times in 981 Posts
    Rep Power
    366

    Re: Registering dll and OCX files on all clients in our scho

    yes however you will have to alter the path to the relevant ocx file and if there is more then one file that requires registering then you will need to add to the above code to register each file.

    ie :

    Set oShell = CreateObject("Wscript.Shell")
    oShell.Run "RegSvr32 /s " & chr(34) & "Path\to\file.ocx" & chr(34)

    Where it says :

    Path\to\file.ocx

    you need to alter that in between the quotes to the actual fully qualified path of your ocx file or the file that requires to be registered. So if the ocx file was in

    C:\windows\system32\ocx_file.ocx

    Then you would put the above path in between the quotes.

    If you need more help just post back

  5. #5
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,987
    Thank Post
    120
    Thanked 283 Times in 261 Posts
    Rep Power
    107

    Re: Registering dll and OCX files on all clients in our school

    Its an easy job using advanced installer as well to make an msi. Simply create a new MSI. Add all you DLLs etc and tell them to go to the system folder. Then just right click on each on and set them to auto register.

  6. #6
    ranj's Avatar
    Join Date
    Feb 2006
    Location
    Birmingham
    Posts
    730
    Thank Post
    99
    Thanked 42 Times in 32 Posts
    Rep Power
    25

    Re: Registering dll and OCX files on all clients in our school

    Thanks for you help but I have run into a problem

    This is the path to the file

    Set oShell = CreateObject("Wscript.Shell")
    oShell.Run "RegSvr32 /s " & chr(34) & "\\QBDomain\netlogon\Cars in Motion script\Picclp32.ocx" & chr(34).

    This is the path to the netlogon share where the OCX file resides.

    I not very good with VB script but created a batch file (.BAT) and put the script into there and got the following error when I ran the batch file :

    "oshell.run is not recognised as an internal or external command. operable program or batch file."
    "chr is not recognised as an internal or external command. operable program or batch file"

    Do you know what it could be?

    Your help is much appreciated.

  7. #7
    ranj's Avatar
    Join Date
    Feb 2006
    Location
    Birmingham
    Posts
    730
    Thank Post
    99
    Thanked 42 Times in 32 Posts
    Rep Power
    25

    Re: Registering dll and OCX files on all clients in our school

    Thanks Chris. Is advanced Installer an application?

  8. #8
    RichardDS's Avatar
    Join Date
    May 2007
    Location
    Brighton, UK
    Posts
    13
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Registering dll and OCX files on all clients in our school

    Quote Originally Posted by ChrisH
    Its an easy job using advanced installer as well to make an msi. Simply create a new MSI. Add all you DLLs etc and tell them to go to the system folder. Then just right click on each on and set them to auto register.
    I agree with ChrisH, whilst scripts are great, using Advanced Installer to create a MSI will avoid registering the OCX multiple times and supports upgrade and removal.

  9. #9

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,846
    Thank Post
    3,359
    Thanked 1,061 Times in 981 Posts
    Rep Power
    366

    Re: Registering dll and OCX files on all clients in our school

    Never knew about advanced installer ( handy to know about that ) thanks

    Yes I would agree with that as well, using the advanced installer that is.

    Also just as an FYI it needed to be a vbs file extension not bat


  10. #10
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,987
    Thank Post
    120
    Thanked 283 Times in 261 Posts
    Rep Power
    107

    Re: Registering dll and OCX files on all clients in our school

    Advanced Installer is a free MSI creation tool. It is easy to use. Just get the free version as its ideal for simple jobs.

    http://www.advancedinstaller.com/

  11. #11
    ranj's Avatar
    Join Date
    Feb 2006
    Location
    Birmingham
    Posts
    730
    Thank Post
    99
    Thanked 42 Times in 32 Posts
    Rep Power
    25

    Re: Registering dll and OCX files on all clients in our school

    Gecko

    Thanks for all your help. It worked!!!

    I probably check out that advanced installer as well. Seems like a good tool

    Thanks again.

  12. #12
    contink's Avatar
    Join Date
    Jul 2006
    Location
    South Yorkshire
    Posts
    3,791
    Thank Post
    303
    Thanked 327 Times in 233 Posts
    Rep Power
    118

    Re: Registering dll and OCX files on all clients in our school

    Had something similar with some 2Simple installs..

    http://www.edugeek.net/index.php?nam...=102115#102115

    ... was the solution.

  13. #13
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    890
    Thank Post
    69
    Thanked 85 Times in 70 Posts
    Rep Power
    32

    Re: Registering dll and OCX files on all clients in our school

    Not all DLL/OCX files need to be registered. You can try localising them, by placing a dummy .local file (can just be a blank text file) in the same folder as the executable and library. For instance, in the folder you'd have:
    app1.exe
    abc.dll
    abc.dll.local

    It doesn't always work, but worth a try.

SHARE:
+ Post New Thread

Similar Threads

  1. School Ejay - recording files on local PC
    By ChrisP in forum Educational Software
    Replies: 5
    Last Post: 8th September 2008, 03:50 PM
  2. Stop network adapter registering with DNS
    By saundersmatt in forum Windows
    Replies: 1
    Last Post: 28th September 2007, 07:41 AM
  3. Domain controller not registering as a DC
    By Dos_Box in forum Windows
    Replies: 5
    Last Post: 13th June 2007, 05:17 PM
  4. Preventing a DNS address from registering
    By Dos_Box in forum Windows
    Replies: 2
    Last Post: 27th November 2006, 09:12 AM
  5. Registering OpenOfficeOrg 2.0 via script?
    By MistahBatson in forum Educational Software
    Replies: 2
    Last Post: 9th August 2006, 08:37 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •