CustomActions are very hard to write correctly. There are lots of moving 
parts that they have to fit in between. The way I learned it was to read 
the MSI SDK pages about CustomActions a few times. There is a lot of 
data to digest. DTF is just a managed wrapper around all of those 
concepts so if you don't have the fundamentals down, it really isn't 
going to make sense.

Creating a standard CustomAction for WMI has been on our request list 
for a long time but no one has ever done it and contributed the 
solution. So until that day, everyone has to learn everything about 
CustomActions and WMI and write their own.

Just imagine if you had to do the same for IIS and SQL and PerfCoutners 
and... <smile/>

Glenn Macgregor wrote:
> Hi again,
>
> I am at a loss for how to get this done the suggested way. I found some info 
> on stackoverflow referencing exactly what I want to do.
>
> Simmen: "I have developed a WMI provider in C# using the 
> System.Management.Instrumentation namespace. I need to install the provider 
> into the GAC and register it with the WMI repository using MSI. How might I 
> accomplish this with WIX?"
>
> Rob Mensching: "You'll need a CustomAction to register the WMI provider. 
> We've thought about adding a standard CustomAction to the WiX toolset to 
> support this but haven't had the time to do so yet. Probably quite a bit of 
> work."
>
> Simmen: "Is it possible to do this without invoking InstallUtil.exe? We want 
> to refrain from using InstallUtil because it lacks support for rollback 
> scenarios."
>
> Rob Mensching: "Yeah, InstallUtil.exe should never be used for CustomActions. 
> Using DLLs that read tables from the MSI are the way that all the WiX toolset 
> CustomActions are implemented. You might check them out."
>
> So now I am very lost. Using installutil is not the way to go...so what is 
> the way to achieve this. I am not well versed in windows installer lingo so I 
> have no clue what " Using DLLs that read tables from the MSI are the way that 
> all the WiX toolset CustomActions are implemented." means.
>
> Is it possible for someone to point me in the right direction on this, 
> please. I have a customaction being called in my installer which just prints 
> a log entry. I have no clue what I need to do in my customaction to get the 
> dll registered.
>
> Any help is greatly appreciated.
>
>  Glenn
>
> -----Original Message-----
> From: Glenn Macgregor [mailto:gmacgre...@pocketkings.ie]
> Sent: 26 May 2009 14:17
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] DTF and selfreg dll
>
> Hi All,
>
> I have created a custom action in C# I want  this CA to "install" the selfreg 
> information from a dll I have created. Does anyone know what classes I need 
> to use in the DTF to make this happen.
>
> Thanks
>
>  Glenn
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>   

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to