Registering and unregistering COM+ packages, applicationa an components


   Hello all,

   I'm writting because of a quite annoying problem. In my new job I have to deal with a big CVS-like system (an old version of CA AllFusion Harvest), and lots of source code that belongs to applications that are already in production state.
   Several applications are coded in Visual Basic, and using COM+ (Win2K) or COMTI(WinNT) , so they are basically a lot of DLL's, TLB's and OCX's registered in COM+ or COMTI. So let supose that a developer fixes a bug in one (or more) of this DLL's. My task is to build an installer to deploy only the changes. Unregister the previous DLL, backup it, replace and register the new one. In some cases, I'll have to unregister and re-register the whole application.
   The problem is that I don't kwow how to do this (or even if it is possible) using Delphi. COM+ applications looks more complicated to register thatn common DLLS's. I'm asking this here because some (long) time ago I used Delphi a lot, and I'm planning to use Inno Setup (http://www.jrsoftware.org), that now supports Pascal Scripting, to build the installers.
   I found a lot of information about doing such things using VB (http://www.devx.com/vb2themax/Door/18897?cat=599&type=1) and VBS, but I would not consider using this unless there is no other way. As I posted this question elsewhere and got no answers, maybe there is somethig very simple I'm not able to figure out... If this is the case, please point me a tutorial or something of the like.

   Thanks in advance,

   []'s

   Oberdan
   
Oberdan_Luiz_MayAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ivanov_GCommented:
There are API function which allow you to work with COM+ applications:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cossdk/html/f302eb02-2ef5-42ee-a18f-59f7e60b38df.asp

Looking at the VB code, I hope you can adapt it to Delphi.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.