I have just built a COM+ sample and it works ok, these are the steps:
1. Create a new wixproj
2. Click "References" and add WixComPlusExtension.
3. Add this to your wxs file:
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:complus="http://schemas.microsoft.com/wix/ComPlusExtension">
4. Add your com+ code, e.g.:
<complus:ComPlusApplication Id="LogEvnt" Name="My COM+
Application">
<complus:ComPlusAssembly Id="MyComPlusAssembly" Type="native"
DllPath="[#LogEvnt_dll]">
<complus:ComPlusComponent Id="LogEvnt"
CLSID="42FE2960-CA74-4DC7-BAEF-25AF03BC5F67" />
</complus:ComPlusAssembly>
<complus:ComPlusApplicationRole Id="Role" Name="My Role" />
</complus:ComPlusApplication>
5. Build the project.
I think the problem is that you are adding
"http://schemas.microsoft.com/wix/WixComPlusExtension" and it should be
" http://schemas.microsoft.com/wix/ComPlusExtension".
I hope this helps.
Neil
-----Original Message-----
From: MacDiarmid, James D [mailto:[email protected]]
Sent: 17 June 2009 20:04
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Votive with
Wix3.0.5120.0doesn'trecognizeWixComplusExtentions.dll
Ok.. This is what I tried.
Added: -ext WixComPlusExtension to both the compiler and linker text
boxes in the project settings.
Kept the
xmlns:complus="http://schemas.microsoft.com/wix/WixComPlusExtension" and
downloaded the Wix Source files, then copied the Pubca.xsd to the
schemas/xml folder.
Tried to rebuild the installer and still get the old error:
The File element contains an unhandled extension element
'complus:ComPlusApplication'. Please ensure that the extension for
elements in the 'http://schemas.microsoft.com/wix/WixComPlusExtension'
namespace has been provided.
-----Original Message-----
From: Brian Rogers [mailto:[email protected]]
Sent: Wednesday, June 17, 2009 1:41 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Votive with
Wix3.0.5120.0doesn'trecognizeWixComplusExtentions.dll
Hey James,
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns="http://www.w3.org/TR/REC-xml-names/" <-- REMOVE THIS
xmlns:complus="http://schemas.microsoft.com/wix/WixComPlusExtension">
Brian Rogers
"Intelligence removes complexity." - Me
http://icumove.spaces.live.com
On Wed, Jun 17, 2009 at 10:16 AM, MacDiarmid, James D <
[email protected]> wrote:
>
> Brian,
>
> I looked through the Votive project properties and I do not see
> anywhere to add that url to the namespace. I tried to add it to the
> line below, but Votive tells me "Attribute 'xmlns' has the same
> namespace and local name as attribute 'xmlns'.
>
> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
> xmlns="http://www.w3.org/TR/REC-xml-names/"
> xmlns:complus="http://schemas.microsoft.com/wix/WixComPlusExtension">
>
> I also tried to add a reference to WixComPlusExtension through the
> project properties in Votive. Didn't work.
>
>
> -----Original Message-----
> From: Brian Rogers [mailto:[email protected]]
> Sent: Wednesday, June 17, 2009 12:29 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Votive with Wix
> 3.0.5120.0doesn'trecognizeWixComplusExtentions.dll
>
> Hey Jim,
>
> Sorry, I didn't realize you were using Votive until you said it again.
> I looked back through the thread and saw you mentioned it earlier.
> Could you try to add the namespace to the .wxs file you are using and
> make sure that you have a project reference to the
> WixComplusExtension.dll in your project?
> Run the build one more time and see what you get.
>
> Thanks,
>
> Brian Rogers
> "Intelligence removes complexity." - Me http://icumove.spaces.live.com
>
>
> On Wed, Jun 17, 2009 at 9:08 AM, MacDiarmid, James D <
> [email protected]> wrote:
>
> >
> > Hi Brian,
> >
> > No, I have no idea what that is or where it needs to go. I'm still
> > very green to Wix and Votive. I've been doing search after search on
> > the net and the only examples I've seen in this area say to add a
> > reference to the WixComPlusExtension Dll, which I did as described,
> > and as shown
> > below:
> >
> > <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
> >
> >
xmlns:complus="http://schemas.microsoft.com/wix/WixComPlusExtension">
> >
> > Also in regard to the "-ext", I don't know what that refers to or
> > where it goes.
> >
> > Any direction or advisement you can give is always appreciated. As
the
>
> > saying goes...
> >
> > "Assume I know nothing..." :)
> >
> > Many thanks in advance,
> > Jim
> >
> >
> > -----Original Message-----
> > From: Brian Rogers [mailto:[email protected]]
> > Sent: Wednesday, June 17, 2009 11:39 AM
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] Votive with Wix 3.0.5120.0
> > doesn'trecognizeWixComplusExtentions.dll
> >
> > Hey James,
> >
> > Out of curiosity, did you at the namespace to the .wxs file (
> > http://www.w3.org/TR/REC-xml-names/)?
> >
> > <Wix ...
> > xmlns:complus="http://schemas.microsoft.com/wix/WixComPlusExtension
> > ">
> >
> > And have you added the -ext to both candle.exe and light.exe?
> >
> > Thanks,
> >
> > Brian Rogers
> > "Intelligence removes complexity." - Me
http://icumove.spaces.live.com
> >
> >
> > On Wed, Jun 17, 2009 at 7:08 AM, MacDiarmid, James D <
> > [email protected]> wrote:
> >
> > >
> > > The error I'm getting is:
> > >
> > > The File element contains an unhandled extension element
> > > 'complus:ComPlusApplication'. Please ensure that the extension
for
> > > elements in the
> 'http://schemas.microsoft.com/wix/WixComPlusExtension'
> > > namespace has been provided.
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Rob Mensching [mailto:[email protected]]
> > > Sent: Tuesday, June 16, 2009 5:10 PM
> > > To: General discussion for Windows Installer XML toolset.
> > > Subject: Re: [WiX-users] Votive with Wix 3.0.5120.0
doesn'trecognize
> > > WixComplusExtentions.dll
> > >
> > > What is the error?
> > >
> > > MacDiarmid, James D wrote:
> > > > I'm trying to add a complus component but Votive does not
> recognize
> > > > the reference to the WixComplusExtension.dll.
> > > >
> > > > Any ideas what would cause this?
> > > >
> > > >
> > > > <Directory Id="binaries"
> > > > FileSource="D:\Projects\NFTS\Src\apps\nfts\binaries"
> > Name="binaries">
> > > > <Component Id="NTSVC"
> > > > Guid="{4F850F61-E0CB-41CA-BFC3-EC5234D1D003}">
> > > > <File Id="ntsvc.ocx" KeyPath="yes"
> > > > Source="D:\Projects\NFTS\Src\apps\nfts\binaries\ntsvc.ocx">
> > > >
> > > > <complus:ComPlusApplication Id="NTSVC" Name="NT
> > > > Service Component">
> > > > <complus:ComPlusAssembly
Id="NTSVCPlusAssembly"
> > > > Type="native" DllPath="[#ntsvc.ocx]">
> > > > <complus:ComPlusComponent Id="NTSVC"
> > > > CLSID="E7BC34A3-BA86-11CF-84B1-CBC2DA68BF6C" />
> > > > </complus:ComPlusAssembly>
> > > > </complus:ComPlusApplication>
> > > >
> > > >
> > > > <TypeLib
> Id="{E7BC34A0-BA86-11CF-84B1-CBC2DA68BF6C}"
> > > > Control="yes" Description="Microsoft NT Service Control"
> > > > HelpDirectory="binaries" Language="0" MajorVersion="1"
> > > MinorVersion="0">
> > > > <Class
> Id="{E7BC34A3-BA86-11CF-84B1-CBC2DA68BF6C}"
> > > > Context="InprocServer32" Description="NT Service Control"
> > > Version="1.0"
> > > > Control="yes">
> > > > <ProgId Id="NTService.Control.1"
> Description="NT
> >
> > > > Service Control" />
> > > > </Class>
> > > > <Interface
> > > Id="{E7BC34A1-BA86-11CF-84B1-CBC2DA68BF6C}"
> > > > Name="_DNtSvc"
> > > ProxyStubClassId="{00020420-0000-0000-C000-000000000046}"
> > > > ProxyStubClassId32="{00020420-0000-0000-C000-000000000046}" />
> > > > <Interface
> > > Id="{E7BC34A2-BA86-11CF-84B1-CBC2DA68BF6C}"
> > > > Name="_DNtSvcEvents"
> > > > ProxyStubClassId="{00020420-0000-0000-C000-000000000046}"
> > > > ProxyStubClassId32="{00020420-0000-0000-C000-000000000046}" />
> > > > </TypeLib>
> > > > </File>
> > > > <RegistryValue Root="HKCR"
> > > > Key="CLSID\{E7BC34A3-BA86-11CF-84B1-CBC2DA68BF6C}\MiscStatus\1"
> > > > Value="199824" Type="string" Action="write" />
> > > > <RegistryValue Root="HKCR" Key="CLSID\{E7BC
> > > > 34A3-BA86-11CF-84B1-CBC2DA68BF6C}\MiscStatus" Value="0"
> > Type="string"
> > > > Action="write" />
> > > > <RegistryValue Root="HKCR"
> > > >
Key="CLSID\{E7BC34A3-BA86-11CF-84B1-CBC2DA68BF6C}\ToolboxBitmap32"
> > > > Value="D:\Projects\NFTS\Src\apps\nfts\binaries\ntsvc.ocx, 1"
> > > > Type="string" Action="write" />
> > > > </Component>
> > > >
> > > >
> > > > Jim MacDiarmid
> > > > EDS, an HP company
> > > > U.S. Public Sector
> > > > Department of Homeland Security Segment 13600 EDS Drive, A3N-B27
> > > > Herndon, VA 20171
> > > > 703-236-3821(office)
> > > > 571-247-2343(cell)
> > > >
> > > >
> > > >
> --------------------------------------------------------------------
> > > > --
> > > > -------- Crystal Reports - New Free Runtime and 30 Day Trial
Check
> > > > out
> > >
> > > > the new simplified licensing option that enables unlimited
> > > > royalty-free distribution of the report engine for externally
> facing
> >
> > > > server and web deployment.
> > > > http://p.sf.net/sfu/businessobjects
> > > > _______________________________________________
> > > > WiX-users mailing list
> > > > [email protected]
> > > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > > >
> > >
> > >
> ----------------------------------------------------------------------
> > > --
> > > ------
> > > Crystal Reports - New Free Runtime and 30 Day Trial Check out the
> new
> > > simplified licensing option that enables unlimited royalty-free
> > > distribution of the report engine for externally facing server and
> web
> >
> > > deployment.
> > > http://p.sf.net/sfu/businessobjects
> > > _______________________________________________
> > > WiX-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> > >
> > >
> ----------------------------------------------------------------------
> > > -------- Crystal Reports - New Free Runtime and 30 Day Trial Check
> out
> >
> > > the new simplified licensing option that enables unlimited
> > > royalty-free distribution of the report engine for externally
facing
> > > server and web deployment.
> > > http://p.sf.net/sfu/businessobjects
> > > _______________________________________________
> > > WiX-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> >
>
------------------------------------------------------------------------
> > ------
> > Crystal Reports - New Free Runtime and 30 Day Trial Check out the
new
> > simplified licensing option that enables unlimited royalty-free
> > distribution of the report engine for externally facing server and
web
> > deployment.
> > http://p.sf.net/sfu/businessobjects
> > _______________________________________________
> > WiX-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> >
>
------------------------------------------------------------------------
> ------
> > Crystal Reports - New Free Runtime and 30 Day Trial
> > Check out the new simplified licensing option that enables unlimited
> > royalty-free distribution of the report engine for externally facing
> > server and web deployment.
> > http://p.sf.net/sfu/businessobjects
> > _______________________________________________
> > WiX-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
------------------------------------------------------------------------
> ------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
------------------------------------------------------------------------
------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------
------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------
------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users