How to find if event source is created?

364 Views Asked by At

I am using the sample code to create event source:

<DirectoryRef Id="TARGETDIR">
  <Component Id="RegistryEntries" Guid="PUT-GUID-HERE">
    <util:EventSource
      Name="Training Kiosk"
      Log="Application"
      EventMessageFile="[NETFRAMEWORK40FULLINSTALLROOTDIR]EventLogMessages.dll"
      />
  </Component>
</DirectoryRef>

How do I confirm whether event source is created?

1

There are 1 best solutions below

1
On

EventSource creates rows in the Registry table; MSI reads those rows then writes them to the registry. So as long as the component is installed successfully, the event source will be "created"--because that's just a handful of registry entries.