If I remember correctly, the /rf and /mf parameters are replacing the
resourceFileName and messageFileName attributes in your manifest with the
provided paths. This is already done by the WIX custom action and the
parameters are therefore not required. You should verify that the file paths
are adjusted after the installation.

The error must be something else. 

Kind regards,
Georg



-----Ursprüngliche Nachricht-----
Von: Thomas Tomiczek [mailto:t.tomic...@nettecture.com] 
Gesendet: Dienstag, 4. Februar 2014 06:53
An: General discussion about the WiX toolset.
Betreff: Re: [WiX-users] EventManifest - broken or wrong usage?

Sorry to say, but I have validated it to work from the command line. The
WEVT should have 3 parameters  - im, /RF and /MF and the command line I do
see in the logs only has one. Care to explain that?

When I register all three manually it works.

When I rely on the WIX generated call, it does not. And, as I said, the
command line in the logs does not show /rf and /mf.

Regards

Thomas

-----Original Message-----
From: Georg von Kries [mailto:g...@creativbox.net]
Sent: 03 February 2014 22:29
To: 'General discussion about the WiX toolset.'
Subject: Re: [WiX-users] EventManifest - broken or wrong usage?

Hi,

your components are correct, I use it the same way and it is working
properly. IMHO the call to wevtutil in your log looks correct too, as the
custom action will adjust the resource and message file paths in the
manifest XML. No need to pass those to wevtutil.

If I remember correctly, the hard part for using ETW was not the
installation but to get the manifest and native resources right in .NET.
Also don't forget to close the event viewer when testing your
installation... 

Kind regards,
Georg von Kries


-----Ursprüngliche Nachricht-----
Von: Thomas Tomiczek [mailto:t.tomic...@nettecture.com]
Gesendet: Montag, 3. Februar 2014 10:46
An: General discussion for Windows Installer XML toolset.
(wix-users@lists.sourceforge.net)
Betreff: [WiX-users] EventManifest - broken or wrong usage?

After some more research the question again.

Is the EventManifest (in the utility namespace) broken or do I just use it
wrong?

EventManifest is the WIX version of wevtutil.

In order to properly register one needs three parameters - the manifest and
2x the compiled manifest.

Regardless how I am setting things up I am seemingly only able to get the
first one called, the other two parameters always are not used, as a result
the registration does not work. I checked the logs and I never see the 2nd
and 3rd parameter being called.

In the particular example, I am declaring the files as:

      <Component Id="Reflexo.GridAgent.EventSource.BinaryManifest" Guid="*">
        <File Id="Reflexo.GridAgend.EventSource.BinaryManifest"
Name="Reflexo.GridAgent.EventSource.Reflexo-GridAgent-EventLog.etwManifest.d
ll"
Source="$(var.Reflexo.GridAgent.EventSource.TargetDir)Reflexo.GridAgent.Even
tSource.Reflexo-GridAgent-EventLog.etwManifest.dll" KeyPath="yes"
Vital="yes" />
      </Component>
      <Component Id="Reflexo.GridAgent.EventSource.Manifest" Guid="*">
        <File Id="Reflexo.GridAgend.EventSource.Manifest"
Name="Reflexo.GridAgent.EventSource.Reflexo-GridAgent-EventLog.etwManifest.m
an"
Source="$(var.Reflexo.GridAgent.EventSource.TargetDir)Reflexo.GridAgent.Even
tSource.Reflexo-GridAgent-EventLog.etwManifest.man" KeyPath="yes"
Vital="yes">
          <util:EventManifest
MessageFile="[#Reflexo.GridAgent.EventSource.BinaryManifest]"
ResourceFile="[#Reflexo.GridAgent.EventSource.BinaryManifest]"/>
        </File>

The proper call that should be generated is:

wevtutil im "C:\Program Files
(x86)\Reflexo.GridAgent\Reflexo.GridAgent.EventSource.Reflexo-GridAgent-Even
tLog.etwManifest.man" /rf:"C:\Program Files
(x86)\Reflexo.GridAgent\Reflexo.GridAgent.EventSource.Reflexo-GridAgent-Even
tLog.etwManifest.dll" /mf:"C:\Program Files
(x86)\Reflexo.GridAgent\Reflexo.GridAgent.EventSource.Reflexo-GridAgent-Even
tLog.etwManifest.dll"

Sadly the log only shows:

MSI (s) (8C:40) [10:33:52:580]: Executing op:
CustomActionSchedule(Action=RegisterEventManifest,ActionType=3073,Source=Bin
aryData,Target=CAQuietExec,CustomActionData="wevtutil.exe" im "C:\Program
Files
(x86)\Reflexo.GridAgent\Reflexo.GridAgent.EventSource.Reflexo-GridAgent-Even
tLog.etwManifest.man")

I am not ruling out that there is an error in my EventManifest declaration -
the alternative would be a bug.

Now, before I am retiring towards just calling wevtutil manually in a custom
action..... do I have something wrong in the WIX code?

Regards

Thomas
----------------------------------------------------------------------------
--
Managing the Performance of Cloud-Based Applications Take advantage of what
the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



----------------------------------------------------------------------------
--
Managing the Performance of Cloud-Based Applications Take advantage of what
the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

----------------------------------------------------------------------------
--
Managing the Performance of Cloud-Based Applications Take advantage of what
the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to