Results 1 to 7 of 7

Thread: Regsvr32 without using Start->Run

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    9
    I recently distributed an application on Windows NT
    that referenced scrrun.dll

    When I installed the application I had to go
    to the Start->Run and type
    "regsvr32 scrrun.dll"

    I have to distribute another application using
    scrrun.dll
    Is there any way I can prevent the user from
    having to go to start->run and registering the server ?



  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    I'm not sure cause I don't have win 2000 but try going to my computer, c:\, winnt
    and look in that folder
    NXSupport - Your one-stop source for computer help

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    9
    I think I can use the shell function as in:

    shell "regsvr32.exe scrrun.dll"

    but i have 2 more questions:

    In what folders does the scrrun.dll file go to ?
    eg, c:\Windows\system

    and what are the entries to the registry ?

    and how do i uninstall the .dll if i wanted to ?


  4. #4
    Guest
    Code:
    DllUnregisterServer 
    To Register/Unregister a DLL/OCX 
    
    Option Explicit
    Private Declare Function DllRegisterServer() lib "MyDll.Dll" as long
    Private Declare Function DllUnregisterServer Lib "MyDll.Dll" () As Long
    Const ERROR_SUCCESS = &H0
    
    If DllRegisterServer = ERROR_SUCCESS Then
        MsgBox "Registration Successful"
    Else
        MsgBox "Registration Unsuccessful"
    End If
    
    If DllUnregisterServer = ERROR_SUCCESS Then
        MsgBox "UnRegistration Successful"
    Else
        MsgBox "UnRegistration Unsuccessful"
    End If

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    9
    Thanks for your help Matthew

  6. #6
    Addicted Member Tiovital's Avatar
    Join Date
    Apr 2000
    Posts
    249
    Matthew,

    I Thought that when you distribute your application, VB register all dll in your project ? Isnt? Do i have to check in my project evry dll? or trap the error for the unregisterd dll and register it in the fly?

    Regards

  7. #7
    Guest
    Usually, if you use a Setup program, it will register everything...not sure about every Setup program though. I don't think VB alone will do it.

Posting Permissions

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



Click Here to Expand Forum to Full Width