View Full Version : Automate DCOM config! Is it possible?
Martin_SBT
07-25-2007, 01:25 PM
I will build an installer for an OPC server i developped, using SUFWI.
Is it possible to automate the DCOM configurations of my OPC server throught SUFWI??
It is usuallly something i need the user to do manually in Windows using dcomcnfg but it would be great if the installer would be able to:
-Register my OPC server in the COM components
-Setup automatically Launch and Access permissions in DCOM for my OPC server.
If you tell me this is possible with SUFWI, i will fall on my knees and prosternate in front of you.....;)
Thanks
Brett
07-25-2007, 01:27 PM
Martin, I do not know of a way to directly do that in SUFWI. If you have an executable that you can run to do the configuration you can use a custom action to run it.
Martin_SBT
07-26-2007, 10:20 AM
Thanks to Brett for pointing me in the right direction!
I wanted to share what i found out about this topic!
I am sure others will like the ability to setup DCOM for a COM component from The install of their product. I used DCOMPerm.exe that is a sample source code given by Microsoft, so it is free! :lol
I found a compiled version that i am attaching here. To see a list of all switches with explanations just type dcomperm -?
So all you need to do is build a batch file that will use dcomperm, and include both file (you batch + dcomperm.exe) in your project and create custom actions to fire up your batch file! Voila!
Of course, you need to knoe the AppID of your COM component AND the COM component need to be already registered on the PC! But i let you figure out these details..
Hope it helped
mitendra
01-24-2008, 11:05 PM
I have few DCOM components and want to set following settings programmatically not manually. Is there a way/utility to do that.
1. In Location Tab, "Run Application on the computer where data is located" should be unchecked.
2. In Security tab, " Enforce Access checks for this Application " box should be unchecked.
3. IN the " COM Security " tab ,
A) Access Permission.
B) Launchc&Activation Permission
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.