IsLanguageInstalled() public method

public IsLanguageInstalled ( string xmlFilePath, string language ) : bool
xmlFilePath string
language string
return bool
        static void Main(string[] args)
        {
            try
            {
                var productId = ""; //args[0];

                var officeInstall = new InstallOffice {ProductId = productId };
                officeInstall.IsLanguageInstalled(@"E:\Users\rsmith.VCG\Desktop\config1.xml", "en-us");
            }
            catch (Exception ex)
            {
                Console.WriteLine("ERROR: " + ex.Message);
            }
            finally
            {
                Console.WriteLine("Done");
                Console.ReadLine();
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            try
            {
                var productId = ""; //args[0];

                var officeInstall = new InstallOffice {
                    ProductId = productId
                };
                officeInstall.IsLanguageInstalled(@"E:\Users\rsmith.VCG\Desktop\config1.xml", "en-us");
            }
            catch (Exception ex)
            {
                Console.WriteLine("ERROR: " + ex.Message);
            }
            finally
            {
                Console.WriteLine("Done");
                Console.ReadLine();
            }
        }