Note that there are some explanatory texts on larger screens.

plurals
  1. USDragonsRightWing
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COThanks, Pavel. It looks as if I'm going to have to use a single EventSource, then use some alternate means of further identifying the "Inner Source". Again, the problem is that the application is not actually installed on the machine where the Event entries need to be written. You have gotten me interested in WiX, however - I have not looked into it before now.
      singulars
    2. CO1) sorry about the hard-to-read formatting on the last reply ... 2) What is the purpose of EventLog.CreateEventSource - if not to Create Event Sources? In our situation, we may be logging to a physical host on which the application has not been installed, but is being run as a remote application: we want the Events to be written on the client, not the application server. I am not using the auto-create, but specifically testing for, then (if needed) explicitely creating, the EventSource.
      singulars
    3. COIn the Solution Explorer, right-click the default project: choose Add>New Item In the dialog, select the Installer Class template, name it A new class is added - after the call to InitializeCompnent(), add this code: if (!EventLog.SourceExists("MySource") EventLog.CreateEventSource("MySource", "Application"); Add a Setup Project & add Primary Output Right-click on the Setup project, select View>CustomActions Right-Click the Install folder, choose Add Custom Action Select Application Folder, then Primary Output - click OK. Save & Build - the code you added runs at setup
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload