Solved

Best process to deploy a new dll to internal users

Posted on 2007-04-09
8
161 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 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 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Macro which automatically sends attachment to Outlook 14 78
Determine Range to Select 5 53
message box in access 4 51
Exit a vb6 apps when a calling it apps closes 15 53
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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

820 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