Solved

Best process to deploy a new dll to internal users

Posted on 2007-04-09
8
163 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 70

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 66

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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
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
 
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 66

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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 process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

695 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