Register a self-register Dll

Hi.
I have made a Dll in VB6 and I want
some users to be able to use
that Dll. How do I register a Dll
that is self-registered.
If a do a setup it will be registered
but I want to use some sort of INF file
or bat file.
How do I do?
PerBomanAsked:
Who is Participating?
 
mcriderConnect With a Mentor Commented:
You said you may want to use a bat file...


If you do, put:

\windows\system\regsvr32 /s YOURDLL.DLL

in the batch file....


Cheers!
0
 
mcriderCommented:
Type this in at the command line to get help on regsvr32:

     \windows\system\regsvr32 /?


Cheers!
0
 
PerBomanAuthor Commented:
I know how to use regsvr32.
I want the user just for example
just to rightclick an INF-file and
choose install.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
PerBomanAuthor Commented:
Yes, but it must work on NT also
(and maybe the user don't have installed
windows in the folder windows)
so I must no the path to the system folder in the bat file.
How do I do that?
0
 
mcriderCommented:
How about using the environment variable WINDIR...

 %WINDIR%\system\regsvr32 /s YOURDLL.DLL


Cheers!

0
 
mcriderCommented:
regsvr32 is on NT...


Cheers!
0
 
PerBomanAuthor Commented:
Ok , thanks.
Can one be sure that all Win95/98
NT system have the environment variable
WINDIR?

Pelle
0
 
mcriderCommented:
Yep!
0
All Courses

From novice to tech pro — start learning today.