Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-12 Thread dB .
://msiext.codeplex.com. We welcome contributors. dB. @ dblock.org Moscow|Geneva|Seattle|New York -Original Message- From: Nick Ramirez [mailto:nickra...@hotmail.com] Sent: Thursday, July 08, 2010 5:45 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Compiler extension - how

Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-12 Thread Rob Mensching
Message- From: Nick Ramirez [mailto:nickra...@hotmail.com] Sent: Thursday, July 08, 2010 5:45 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Compiler extension - how to include a custom action? Oookay. So, now it's one of those situations where it didn't work and magically

Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-12 Thread Nick Ramirez
Thanks Rob. I'd love to contribute. Where do you need more eyes? As for the compiler extension, I'm back to where I was. I haven't been able to get Candle to recognize the embedded wixlib in my compiler extension. Experimenting with several ideas, I've added the Link element to my build script,

Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-12 Thread Nick Ramirez
I've got an update. I've gotten my wixlib to show up in my MSI! The trick, for me, was to add a Property to the Fragment in the wixlib I was embedding and then use a PropertyRef to pull it in in my installer project. Pulling that in pulled in all the other stuff (including custom actions) from

Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-12 Thread Blair
on the Core property of your CompilerExtension's base object. Most of us use the name of our CustomAction. -Original Message- From: Nick Ramirez [mailto:nickra...@hotmail.com] Sent: Monday, July 12, 2010 2:47 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Compiler extension

Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-12 Thread Blair
to appropriate things in the embedded library's Fragments. -Original Message- From: Nick Ramirez [mailto:nickra...@hotmail.com] Sent: Monday, July 12, 2010 3:21 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Compiler extension - how to include a custom action? I've got

Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-12 Thread Nick Ramirez
Ah, fantastic. That sounds like a much more elegant solution that using a PropertyRef. Thanks Blair. So, it looks like this method is referencing a table and row that would be created with the wixlib. Like this from the Util extension. core.CreateWixSimpleReferenceRow(sourceLineNumbers,

Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-10 Thread Bob Arnson
On 7/8/2010 5:00 PM, Nick Ramirez wrote: At the risk of sounding completely clueless, how does one debug an extension project? It seems that the GetLibrary function's parameters are populated by Candle. Do I debug Candle somehow? Sure. Set a breakpoint in your extension's methods and run

[WiX-users] Compiler extension - how to include a custom action?

2010-07-08 Thread Nick Ramirez
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

Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-08 Thread Nick Ramirez
Oops. Sorry. I posted the wrong part of the code. Here's the part that I use to register the .wixlib: public override Library GetLibrary(TableDefinitionCollection tableDefinitions) { if (this.library == null) { this.library = LoadLibraryHelper(

Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-08 Thread Neil Sleightholm
] Compiler extension - how to include a custom action? Oops. Sorry. I posted the wrong part of the code. Here's the part that I use to register the .wixlib: public override Library GetLibrary(TableDefinitionCollection tableDefinitions) { if (this.library == null) { this.library

Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-08 Thread Blair
extension - how to include a custom action? Oops. Sorry. I posted the wrong part of the code. Here's the part that I use to register the .wixlib: public override Library GetLibrary(TableDefinitionCollection tableDefinitions) { if (this.library == null) { this.library

Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-08 Thread Nick Ramirez
Thanks Blair and Neil for the help. I looked at the extension you gave a link to, Neil, but I'm not able to see anything that they have that I don't. I'm sure there's a piece to the puzzle I'm missing. At the risk of sounding completely clueless, how does one debug an extension project? It seems

Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-08 Thread Neil Sleightholm
in the root of your project. Hope this helps. Neil -Original Message- From: Nick Ramirez [mailto:nickra...@hotmail.com] Sent: 08 July 2010 18:13 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Compiler extension - how to include a custom action? Oops. Sorry. I posted the wrong

Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-08 Thread Nick Ramirez
Oookay. So, now it's one of those situations where it didn't work and magically...it does! What did I do? I messed around with flags for lit.exe, removed them, changed things back to what they were orginally...rebuilt everything and it worked. So, same code, different result. I'm not sure. I