IsLanguageInstalled() public method

public IsLanguageInstalled ( string xmlFilePath, string language ) : bool
xmlFilePath string
language string
return bool
コード例 #1
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();
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: ajayverma111/OPP-Scripts
        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();
            }
        }