Hi all!
I have received a com .dll (Server.dll) that I need to build an installer
for.
There are 2 main requirements on the Installer:
1. It should make the same registry entries as if running regsvr32 on
the dll.
2. It should create a COM+ application for the dll and place a subset
of its classes as components in the application.
The first requirement was not hard to meet. I just used tallow to capture
the reg-entries for the dll. This part works fine when I run the installer.
The second reuirement was a bit harder to figure out. Right now I use the
PUBCA extension to set up the com+ part.
Server.dll consists of 10 classes, but only classes 1-3 should be created as
components in the com+ application.
My wix markup:
<Component Id="component418" DiskId="1"
Guid="358E0BE2-86B2-4A23-8856-A692567BDC31">
<File Id="file466" Name="SERVER_1.DLL" LongName="Server.dll"
KeyPath="yes" Source="X:\My\Path\ToDLL\Server.dll" />
<pca:ComPlusApplication Id="MyCOM" Name="MyServer"
ApplicationAccessChecksEnabled="no">
<pca:ComPlusAssembly Id="MyComPlusAssembly" Type="native"
DllPath="[#file466]">
<pca:ComPlusComponent Id="MyFirstClass"
CLSID="3FCE151B-C805-4AAD-A7B7-2B87F0F59CA9" />
<pca:ComPlusComponent Id="MySecondClass"
CLSID="3FCE151B-C805-4AAD-A7B7-2B87F0F59CA9" />
<pca:ComPlusComponent Id="MyThirdClass"
CLSID="3FCE151B-C805-4AAD-A7B7-2B87F0F59CA9" />
</pca:ComPlusAssembly>
</pca:ComPlusApplication>
<Registry Root="HKCR" . registry entries below
</Component>
This creates a an application, but all 10 of my classes are added as
components. I thought that only the ComPlusComponents that I defined would
be added. Is this correct?
Btw Im using wix v2.
Regards
Tobias
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users