As an aside, in your schema, you should use a namespace that is not from
MSFT unless you work for that company. Ideally you will use a domain you (or
your employer) own/control.

On to your queries (not in order):
The error seems to mean that the -ext yourextension.dll was missing from the
candle command-line. If you are using an msbuild .wixproj file built using
Votive, did you forget to add a reference to your extension dll?
Alternately, your schema's "targetNamespace" doesn't match the namespace you
selected in your CompilerExtension (I always simply retrieve the schema's
targetNamespace instead of hardcoding it in my C# code so they never
differ). Also make sure you didn't get the case wrong in your namespace: XML
is case sensitive (even if Microsoft often isn't).

The wixlib needs to be returned from the GetLibrary() override method of
your WixExtension-derived class. You can use the LoadLibraryHelper() method
if you embedded your wixlib as a resource into your dll (usually the same
way you embed your tables.xml, especially if you used the
LoadTableDefinitionHelper() method to retrieve your tables.xml in your
override of the TableDefinitions property getter).

The decompiler class is only required if you create/consume custom tables
and expect anyone to be able to easily use the melt tool on any package
files created using your extension.

-----Original Message-----
From: Mazin Sayid Ali [mailto:mazin.s...@gmail.com] 
Sent: Friday, October 09, 2009 12:26 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Trying to create a Wix Extension

Hi,

A newbie query. I'm trying to create a wix extension.
I've done the following.
Created a CustomAction which runs on a CustomTable.
Created a Dll as pre Wix documentation on creating a extension.
Then I inherited the WixExtension Class and CompilerExtension Class. ( I
reused SqlExtension )
I did not create the Decompiler class (Is this required?)
I added the tables. xml file.

Few questions:
Is there anything we need to do while building the extension?
How do I embed the wixlib in the extension?

I get the following error while building the MSI
    The Component element contains an unhandled extension element
'dbpro:DeployDatabase'.  Please ensure that the extension for elements in
the 'http://schemas.microsoft.com/wix/DBProExtension' namespace has been
provided.


Thanks in advance.
Mazin
----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to