Solved

Best process to deploy a new dll to internal users

Posted on 2007-04-09
8
157 Views
Last Modified: 2011-09-20
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
0
Comment
Question by:Jim Horn
8 Comments
 
LVL 29

Expert Comment

by:leonstryker
ID: 18875845
Jim seems like you need a good old Batch (or a VBS) script.

Leon
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 18875895
you don't need to unregister and delete. simply copy over the previous version and re-register.
0
 
LVL 65

Author Comment

by:Jim Horn
ID: 18876222
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
 
LVL 25

Accepted Solution

by:
SStory earned 500 total points
ID: 18876503
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 27

Expert Comment

by:VBRocks
ID: 18877466
You can also just add a Setup Project to your Solution.  It will take care of everything for you.
0
 
LVL 25

Expert Comment

by:SStory
ID: 18877577
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
 
LVL 65

Author Comment

by:Jim Horn
ID: 19110049
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
 
LVL 25

Expert Comment

by:SStory
ID: 19114979
You're welcome!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now