|
-
Jul 5th, 2000, 03:02 PM
#1
Thread Starter
New Member
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 ?
-
Jul 5th, 2000, 03:06 PM
#2
Frenzied Member
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
-
Jul 5th, 2000, 03:42 PM
#3
Thread Starter
New Member
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 ?
-
Jul 5th, 2000, 04:26 PM
#4
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
-
Jul 14th, 2000, 11:36 PM
#5
Thread Starter
New Member
Thanks for your help Matthew
-
Jul 15th, 2000, 12:42 AM
#6
Addicted Member
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
-
Jul 15th, 2000, 09:32 AM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|