<commit_before>﻿using System;
using Microsoft.Deployment.WindowsInstaller;

namespace Wix.CustomActions
{
    public class CustomActions
    {
        [CustomAction]
        public static ActionResult CloseIt(Session session)
        {
            try
            {
                session.Log("Close DotTray!");
            }
            catch (Exception ex)
            {
                session.Log("ERROR in custom action CloseIt {0}", ex.ToString());
                return ActionResult.Failure;
            }  
            return ActionResult.Success;
        }
    }
}<commit_msg>Added code to write to a file in the custom action.<commit_after>﻿using System;
using Microsoft.Deployment.WindowsInstaller;

namespace Wix.CustomActions
{
    using System.IO;

    public class CustomActions
    {
        [CustomAction]
        public static ActionResult CloseIt(Session session)
        {
            try
            {
                const string fileFullPath = @"c:\KensCustomAction.txt";

                if (!File.Exists(fileFullPath))
                    File.Create(fileFullPath);

                File.AppendAllText(fileFullPath, string.Format("{0}Yes, we have a hit at {1}", Environment.NewLine, DateTime.Now));

                session.Log("Close DotTray!");
            }
            catch (Exception ex)
            {
                session.Log("ERROR in custom action CloseIt {0}", ex.ToString());
                return ActionResult.Failure;
            }  

            return ActionResult.Success;
        }
    }
}
{'fraction_non_alphanumeric': 0.08848405985686401, 'fraction_numerical': 0.002602472348731295, 'mean_word_length': 1.6794425087108014, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '978507', 'n_tokens_mistral': 394, 'n_tokens_neox': 374, 'n_words': 93}