Best process to deploy a new dll to internal users

I have a .dll file I need to deploy to 20ish internal users, and I need a process that (a) unregisters the old dll, (b) deletes the old dll, (c) moves new dll into %SYS32%, and (d) registers new dll.

Q:  What's the best process?

TIA
-Jim
LVL 66
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorAsked:
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.

leonstrykerCommented:
Jim seems like you need a good old Batch (or a VBS) script.

Leon
0
Éric MoreauSenior .Net ConsultantCommented:
you don't need to unregister and delete. simply copy over the previous version and re-register.
0
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorAuthor Commented:
I have not had to write batch files or vbscript files before, so if you could give me a template, that would be great.

0
Ultimate Tool Kit for Technology Solution Provider

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 now.

SStoryCommented:
copy the following into doit.bat or whatever bat file

copy %1 %WINDIR%\System32\%1
%WINDIR%\SYSTEM32\REGSVR32.EXE %1

Save the file.

Place the .bat file in the same folder as the dll,
When you call it pass the name of the dll like this

doit.bat <sourcedllname>

This will copy it to the system32 directory, assuming the user has access to it.
And then call register server program on that dll.

HTH,

Shane
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
VBRocksCommented:
You can also just add a Setup Project to your Solution.  It will take care of everything for you.
0
SStoryCommented:
If you are using Win 2003 server for those 20 users, their's probably a way to do a Group Policy Object to deploy it...
Just depends on what you have available.
0
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorAuthor Commented:
Thanks.  That was the solution I was looking for.
I was even able to introduce %2 to do two .dll's.

For the future, I have a table that I use to deploy new .exe versions when they are created.  I'll have to see if I can modify it to also enable new specific .dll versions, shelling out to the appropriate doit.bat file.
0
SStoryCommented:
You're welcome!
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.