Example #1
0
        private static void ExecPol(PolTool tool, PlatformType type)
        {
            if (!tool[type].POL_Installed)
            {
                Console.WriteLine(Properties.Resources.Msg_Err_PolNotInstalled);
                return;
            }

            if (tool[type].FFXI_Installed)
            {
                if (!tool.ExecRegsvr32(type, Regsvr32FailedCallback))
                {
                    Console.WriteLine(Properties.Resources.Msg_Err_DllRegsvr32Failed);
                    return;
                }
            }

            var proc = tool.ExecPol(type);

            if (proc == null)
            {
                Console.WriteLine(Properties.Resources.Msg_Err_PolBootFailed);
                return;
            }
            else
            {
                tool.WaitForExitPol(type);
            }
        }