/build/static/layout/Breadcrumb_cap_w.png

Install and register a .dll that doesn´t exist

If it is possible I would like some help with a script that
installs and register a dll-file. This would be really easy
if I had the actual dll file. But the dll will be finished and placed
on a share at friday when I have my day off.

I know what the name of the dll file will be and I know which share
it will be placed on. I have created a collection in SMS for the machines
that should get this file.

I would like help with a bat or cmd file that does the following

1. Copy the dll-file from the share.
2. Install and register it under %Systemroot%\system32 on
the machines in my collection.

/Nick

0 Comments   [ + ] Show comments

Answers (3)

Posted by: Jamie B 15 years ago
Orange Senior Belt
0
In it's simplest form create a batch file like so and place it in same folder as the dll. Launch the batch file from an SMS program via an advertisment linked to your collection.

copy /y YOURDLL.dll %SystemRoot%\system32\YOURDLL.dll
%SystemRoot%\system32\regsvr32.exe /s %SystemRoot%\system32\YOURDLL.dll

Dont forget to add your your own error checking to the script to make it more robust in a production environment.

A better method would be to create an MSI but without the dll itself you wont be able to extract the registration information.
Posted by: anonymous_9363 15 years ago
Red Belt
0
A better method would be to create an MSI but without the dll itself you wont be able to extract the registration information.Presumably, if the file is going to be dropped to a share, it's being developed internally? If so, the developer can provide all the COM information you need. He/she *must* have a development version and, unless he/she is particularly dumb, that information won't change. It may be added to, but that constitutes a new release in my book and therefore requires a new package or an update.
Posted by: Nixlas 15 years ago
Senior Yellow Belt
0
Thanks for your help. I managed to get the DLL today so
I could deploy it in a MSI-file.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ