|
-
Oct 17th, 2001, 06:26 PM
#1
Thread Starter
Fanatic Member
How to Register a dll on server using code!
Hi all me again ........ Okay quit with the sighs please 
I need to find a way to make my app register a dll on a win 2k server. To complicate matters it needs to be registered with MTS (microsoft Transaction Server)
The dll is not going to be used by ASP or over the internet. It will however be used by clients on the internal network running a client application. This app needs to execute the dll on the Server to utilise some of the win2k ADSI api calls. I know that you can do this i just dont have the foggiest idea of where to start.
Any help will be greatly appreciated
-
Oct 17th, 2001, 06:44 PM
#2
Frenzied Member
If it was Win95/98 you could shell to regsvr32.exe and pass the path/filename of the DLL. I assume Win2k has the same file to regsiter DLLs.
Greg
Free VB Add-In - The Reference Librarian
Click Here for screen shot and download link.
-
Oct 17th, 2001, 07:08 PM
#3
Thread Starter
Fanatic Member
yes regsvr32 register the component but then i need to add it to win 2ks Component Management service so that remote clients can call the dll this is the part i cant do I know how to manually register it but that is not an easy thing to do and if you get it wrong the app wont run so i dont want end users to have to do this..
-
Oct 17th, 2001, 07:19 PM
#4
Frenzied Member
You can probably create a package. and bundle it with the setup. Now through code i was just looking at the MTS admin library and there is an object ccalled Package util where you can import export install packages. Well Then you can install your package that you created with MTS. As soon as a package is created in MTS the dll is registerd automatically. See if that helps. I did not test this code but it looks something like this
Dim package As MTSAdmin.PackageUtil
Set package = New PackageUtil
package.InstallPackage FileName,PathtoFile
-
Oct 17th, 2001, 07:25 PM
#5
Frenzied Member
Here is a link
MSDN - Install package for win2k you need to use the com + object model.
Anyways what you need to do is export the package from MTS and it will create the package for you, in the directory that you want i think do not quote me on this. That you can just execute that file and it will install the package for you in MTS. Give it a try if not refresh this post tomorrow around 11:00 and i will ask our MTS expert at my job.
-
Oct 17th, 2001, 07:44 PM
#6
Frenzied Member
Here is another link on automating installations for MTS packages with some code MSDN LINK
-
Oct 17th, 2001, 07:47 PM
#7
Thread Starter
Fanatic Member
hey thanks jjortiz at least you have given me a starting point im just off to read the links now
-
Oct 17th, 2001, 07:52 PM
#8
Frenzied Member
I have win2k installed so there is not much i can do to show you. There is a lot of stuff there related to MTS automation. The code is pretty simple. All you need to do is ref the MTSAdmin library and off to play. What you can do is export it and create a package. Hey there is also a method of installing remote packages which can be cool. Cause if you need to install that package you can just point to a remote server that has it and then it will install. You will not have to bundle the package with your app. Well i am glad that i was of help. Gives me some ideas to start doing some stuff at work. I work on COM components all the time. Just getting into the admin part or i have been in the admin part, but getting into the good details of it's power. Well have fun in the COM world.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|