void writeLog()
{
    int idx;

    if (g_logPath != "")            // do not store uninstall info
    {
        for (idx = listlen(g_log); idx--; )
            fprintf(g_logPath, g_log[idx], "\n");
    }

    exit(0);
}




