Exemplo n.º 1
0
        public static void InitializeGlobals(List <string> args)
        {
            try
            {
                string tempPath = System.IO.Path.GetTempPath();
                tempPath = System.IO.Path.Combine(tempPath, "SparkInstaller");//Critical we have this folder so logger can move its files.
                string tempFile = System.IO.Path.Combine(tempPath, "SparkInstall.log");
                Globals.InitializeGlobals(tempFile);
                Globals.Logger.LogInfo("Setting Vc Environment Vars (for process only)");
            }
            catch (Exception ex)
            {
                BuildUtils.ShowErrorMessage("Could not initialize Installer:\r\n" + ex.ToString());
            }

            string errTxt = ParseArgs(args);

            if (string.IsNullOrEmpty(errTxt) == false)
            {
                Globals.Logger.LogWarn(errTxt);
            }

            Globals.ProgramName = SparkGlobals.InstallerProgramName;

            GlobalsInitialized = true;
        }