How to write the DCOM component installation configuration script file?

Category: C/C++ -> ActiveX/COM/DCOM Author: zwjlrh Date: 2001-08-03 10:41:23
 
zwjlrh
2001-08-03 10:41:23
Dataservice.exe,
identity authentication: none; Location: The machine; logo: Interactive
If the following situations, how to write
identity authentication: none; Location: Remote machine PCServer; Logo:
eager to start, first thank you!
leichanghong
2001-08-03 10:59:24
We are all handmade with the trouble, there is no automatic way?
xzl102513
2001-08-03 11:07:49
Top about! ^ - ^
w1w1w1wewe
2001-08-03 11:20:00
Reference:
================================ =====================================
class procedure TRemoteDataModule.UpdateRegistry (Register : Boolean;
const ClassID, ProgID: string);
var
CatReg: ICatRegister;
; Rslt: HResult;
CatInfo: TCATEGORYINFO;
Description: string;
begin
Rslt: = CoCreateInstance (CLSID_StdComponentCategoryMgr, nil,
CLSCTX_INPROC_SERVER, ICatRegister, CatReg);
if Succeeded (Rslt ) then
begin
if Register then
begin
; CatInfo.catid: = CATID_MIDASAppServer;
CatInfo.lcid: = $ 0409;
; StringToWideChar (MIDAS_CatDesc, CatInfo.szDescription,
Length (MIDAS_CatDesc) + 1);
OleCheck (CatReg.RegisterCategories (1, @ CatInfo));
OleCheck (CatReg.RegisterClassImplCategories (StringToGUID (ClassID), 1, @ CATID_MIDASAppServer));
end else
begin
OleCheck (CatReg.UnRegisterClassImplCategories (StringToGUID (ClassID), 1, @ CATID_MIDASAppServer));
DeleteRegKey (Format (SClsid + SCatImplBaseKey, [ClassID]));
end;
end else
begin
if Register then
begin
; CreateRegKey ('Component Categories \' + GUIDToString (CATID_MIDASAppServer), '409 ', MIDAS_CatDesc);
CreateRegKey ( Format (SClsid + SCatImplKey, [ClassID, GUIDToString (CATID_MIDASAppServer)]),'','');
end else
begin
DeleteRegKey (Format (SClsid + SCatImplKey, [ClassID, GUIDToString (CATID_MIDASAppServer) ]));
DeleteRegKey (Format (SClsid + SCatImplBaseKey, [ClassID]));
; end;
end;
if Register then
begin
Description: = GetRegStringValue (SClsid + ClassID,'');
CreateRegKey ('AppID \' + ClassID,'', Description);
CreateRegKey (SClsid + ClassID, 'AppID', ClassID);
end else
DeleteRegKey ('AppID \' + ClassID);
end;
liuxiaoli
2001-08-03 11:30:15
have time to give the CB code.
zwf_ycy
2001-08-03 11:34:11
The above is the registration code, temporary or no time given.
Here is the configuration:
now we QQ.QQAPI (qq.exe) as an example, with CLSID {2D616D8F-F1BA-43A1-BEF0-E2A82A0FBD56}
then we can use the Edit Registry
==============================
HKEY_LOCAL_MACHINE \ SOFTWARE \ Classes \ AppID \ {2D616D8F -F1BA-43A1-BEF0-E2A82A0FBD56}
conventional
Chinese Description: authentication level
Name: AuthenticationLevel
; Type: (REG_DWORD)
Value:
0: (default)
1: No
2: Connect
3: call
4: Packet ;
5: packet integrity
6 : Packet confidentiality
position
Chinese Description: The computer where the data is to run the application
Name: ActivateAtStorage
Type: (REG_SZ)
values: Y: represents the remaining elected vice versa

; Chinese Description: In this application running on the computer
Name: (not obtain the configuration from the registry entry)
[Ignore ]

Chinese Description: In the following the application running on the computer
Name: RemoteServerName
Type: (REG_SZ)
Value: [computer name]

identification
Name: RunAs
Type: (REG_SZ)
Value:
Interactive ; User: interactive user
[account]: real account
[empty or not this means that the login user]
endpoint
Name: EndPoints
type: (REG_MULTI_SZ)
Value:
format: [protocol name] [,] [endpoint attribute] [,] [port (no port with a space filled)]
one, protocol sequence
1. protocol sequence: Tunnel TCP / IP
Value: ncacn_http

2. protocol sequence: Datagram UDP / IP
value: ncadg_ip
3. protocol sequence: Connection-oriented SPX
value: ncacn_spx
4. protocol sequence: Connection-oriented TCP / IP
value: ncacn_ip_tcp
two, endpoint attributes:
1 The attribute: Disable protocol sequence
value: 3
2. Properties: Use the default endpoint
; Value: 0
3. Properties: Use static endpoint
values: 0, port
; 4 attributes: an Intranet using dynamic endpoints range (ncacn_spx not supported)
value: 2
5. Properties: Internet use dynamic endpoints range (ncacn_spx not supported)
value: 1
a670960771
2001-08-03 11:44:51
added to the landlord's answer
1.
=============================== ==
AuthenticationLevel (REG_DWORD) 1
RunAs (REG_SZ) Interactive User
================== ===============

2.
===================== ============
AuthenticationLevel (REG_DWORD) 1
RemoteServerName (REG_SZ) PCServer
========== =======================
jfzy_wind
2001-08-03 11:55:57
do point a little supplement, as well as using the English version of the system adds little English brothers note, but this configuration is for a single application. Meanwhile security options which only the default access permissions can be set, and you are using a binary, it is no longer given.

We are now QQ.QQAPI (qq.exe) as an example, with CLSID {2D616D8F-F1BA-43A1-BEF0-E2A82A0FBD56}
then we can use to edit the registry
================================================ =================================
HKEY_LOCAL_MACHINE \ SOFTWARE \ Classes \ AppID \ {2D616D8F-F1BA- 43A1-BEF0-E2A82A0FBD56}
-------------------------
General General
; Chinese Description: authentication level
Description: Authentication Level
Name: AuthenticationLevel
type: (REG_DWORD)
Value:
0: (default) ; Default
1: None (None)
2: Connect Connect
3: Call Call
4: Packet Packet
5: packet integrity Packet Integrity
6: Packet confidentiality Packet Privacy
----------------- --------
Location Location
Chinese Description: The computer where the data is to run the application
Description : Run application on the computer where the data is located
Name: ActivateAtStorage
Type: (REG_SZ)
Value: Y: represents the remaining elected vice versa

Chinese Description: In this application running on the computer
Description: Run application on this computer
Name: (not obtain the configuration from the registry entry)
[Ignore]

Chinese Description: In the following applications running on the computer
; Description: Run application on the following computer
Name: RemoteServerName
Type: (REG_SZ)
; Value: [computer name]
-------------------------
identification Identity
Name: RunAs
Type: (REG_SZ)
Value:
Interactive User: interactive user The interactive user
[account]: Real Account This user
[empty or none of this means that the login user] The launching user
-------------------------
Endpoints Endpoints
Name: EndPoints
type: (REG_MULTI_SZ)
Value:
format: [protocol name] [,] [endpoint attribute] [,] [port (no port with a space filled) ]
a Protocol Sequence Protocol Sequence
1. protocol sequence: Tunneling TCP / IP (Tunneling TCP / IP)
value: ncacn_http ;
2. protocol sequence: Datagram UDP / IP (Datagram UDP / IP)
value: ncadg_ip
3. protocol sequence: Connection-oriented SPX ; (Connection-oriented SPX)
value: ncacn_spx
PS: do not support dynamic endpoints
4. protocol sequence: Connection-oriented TCP / IP (Connection-oriented TCP / IP)
value: ncacn_ip_tcp
5 The protocol sequence: connection-oriented NetBEUI (Connection-oriented NetBEUI)
Value: ncacn_nb_nb
PS: do not support dynamic endpoints
6. protocol sequence: on IPX connection-oriented NetBEUI (Connection-oriented Netbios over IPX)
value: ncacn_nb_ipx
PS: do not support dynamic endpoints
7. protocol sequence: IPX datagram (Datagram IPX)
value: ncadg_ipx
PS: do not support dynamic
two endpoints, endpoint attributes: Endpoint Assignment
1. Properties: Disable protocol sequence
Desc: Disable protocol sequence
; Value: 3
2. Properties: Use the default endpoint
Desc: Use default endpoints
value: 0
3. Properties: Use static endpoint
Desc: Use static endpoint
values: 0, port
4. properties: Intranet using dynamic endpoints range
Desc: Use Intranet range of dynamic endpoints
value: 2
5 Attributes: Internet use dynamic endpoints range
Desc: Use Internet range of dynamic endpoints
; Value: 1
yuan3345826
2001-08-03 12:15:25
Global Configuration
registry key: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Ole

default properties
Default Properties
======================================= ========
on this computer Enable Distributed COM
Enable Distributed COM on this computer
registry value: EnableDCOM (REG_SZ ) Y / N

on this computer Enable COM Internet Services
Enable COM Internet Services on this computer
Registry Value: EnableDCOMHTTP (REG_SZ) Y / N

Default Distributed COM communication attributes
Default Distributed COM communication properties
--- ---------------------------------------------
; Default Authentication Level
Default Authentication Level
registry value: LegacyAuthenticationLevel (REG_DWORD)
; Default Default 0x00000000
(no) (None) 0x00000001
connection Connect 0x00000002
call Call 0x00000003
packet ; Packet 0x00000004
packet privacy ; Packet Integrity 0x00000005
packet integrity Packet Privacy 0x00000006

; Default Impersonation Level
Default Impersonation Level
registry value: LegacyImpersonationLevel (REG_DWORD)
Anonymous Anonymous 0x00000001
identification Identify 0x00000002
Analog Impersonate 0x00000003
delegate Delegate 0x00000004

is the reference track to provide additional safety measures
Provide addtional security for reference tracking
Registry Value: LegacySecureReferences (REG_SZ) Y / N
zqfya
2001-08-03 12:22:22
Thank you very much unsigned (stiff brother)!