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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
mcriderCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.