Hi all,

 

I suspect there may be a really simple answer to this (I am new to WiX) - I am 
struggling to get the NETFRAMEWORK20INSTALLROOTDIR property to work in the 
EventMessageFile attribute of an EventSource.

 

I am using the VS2008 integration for WiX, and have added a reference to 
WixVSExtension.dll. I have also referenced the namespace like so:

 

  <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";
     xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension"; >

 

In my component, I am trying to create an event log source using the following:

 

  <util:EventSource Name="NormSvc"

       Log="Application" 

       EventMessageFile="[NETFRAMEWORK20INSTALLROOTDIR]EventLogMessages.dll" />


When installed, the event log source gets created, but the EventMessageFile 
entry in the source's registry key is set to "EventLogMessages.dll", rather 
than "C:\Windows\...blah...\EventLogMessages.dll".

 

If I use [WindowsFolder] in the EventMessageFile attribute, this resolves to 
C:\Windows correctly.

 

If it helps, using Orca to look at the MSI shows the registry value as being 
"#%[NETFRAMEWORK20INSTALLROOTDIR]EventLogMessages.dll" - I don't yet know 
enough to know if this is correct or not.

 

Could this be because [NETFRAMEWORK20INSTALLROOTDIR] is defined in a different 
namespace to the doc I am using it in?

 

Thanks,

 

Paul

_________________________________________________________________
View your Twitter and Flickr updates from one place – Learn more!
http://clk.atdmt.com/UKM/go/137984870/direct/01/
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to