That did the trick - I had a feeling it would turn out to be something pretty 
simple..!

Thanks Neil



Have you include <PropertyRef Id="NETFRAMEWORK20INSTALLROOTDIR" /> in
you code?

Neil

-----Original Message-----
From: Paul Nearney [mailto:paul_near...@hotmail.com] 
Sent: 02 April 2009 17:07
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] EventSource EventMessageFile and
NETFRAMEWORK20INSTALLROOTDIR


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

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-- 
View this message in context: 
http://n2.nabble.com/EventSource-EventMessageFile-and-NETFRAMEWORK20INSTALLROOTDIR-tp2576086p2579754.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to