Nick Ramirez
2010-07-08 17:10:37 UTC
Hello all,
I've gotten pretty far (I think) in creating a compiler extension. So far,
my extension is a .dll that can be included in my WiX MSI project. After
including the extension, I can see my new element in Visual Studio and can
add attributes to it. When I use it, a new custom table is created in the
MSI.
I've created a .wixlib project and embedded it inside my extension. In that
.wixlib, I've defined a C# DTF custom action. It's simple. It just reads my
custom table and shows a messagebox with the values from it.
However, so far, I can't get my installer to recognize the custom action (or
anything else in the .wixlib) when I include my extension and use one of its
elements.
In my extension, I'm using this code to pull the .wixlib in:
public override TableDefinitionCollection TableDefinitions
{
get
{
if (this.tableDefinitions == null)
{
this.tableDefinitions = LoadTableDefinitionHelper(
Assembly.GetExecutingAssembly(),
"MyWixExtension.Tables.MyWixTable.xml");
}
return this.tableDefinitions;
}
}
Do I need to do anything else?
Thanks for any help!
I've gotten pretty far (I think) in creating a compiler extension. So far,
my extension is a .dll that can be included in my WiX MSI project. After
including the extension, I can see my new element in Visual Studio and can
add attributes to it. When I use it, a new custom table is created in the
MSI.
I've created a .wixlib project and embedded it inside my extension. In that
.wixlib, I've defined a C# DTF custom action. It's simple. It just reads my
custom table and shows a messagebox with the values from it.
However, so far, I can't get my installer to recognize the custom action (or
anything else in the .wixlib) when I include my extension and use one of its
elements.
In my extension, I'm using this code to pull the .wixlib in:
public override TableDefinitionCollection TableDefinitions
{
get
{
if (this.tableDefinitions == null)
{
this.tableDefinitions = LoadTableDefinitionHelper(
Assembly.GetExecutingAssembly(),
"MyWixExtension.Tables.MyWixTable.xml");
}
return this.tableDefinitions;
}
}
Do I need to do anything else?
Thanks for any help!
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Compiler-extension-how-to-include-a-custom-action-tp5271086p5271086.html
Sent from the wix-users mailing list archive at Nabble.com.
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Compiler-extension-how-to-include-a-custom-action-tp5271086p5271086.html
Sent from the wix-users mailing list archive at Nabble.com.