Пример #1
0
            public Agent()
            {
                try
                {
                    var agentProduct = new MSIProgram("25A070105E2588740B2ED37C28A66094");

                    if (agentProduct.isInstalled)
                    {
                        isInstalled     = true;
                        name            = agentProduct.DisplayName;
                        version         = agentProduct.DisplayVersion;
                        installLocation = agentProduct.InstallLocation;
                        installDate     = agentProduct.InstallDate;
                    }
                    else //If the upgrade code does not exist or has changed we'll search Add/Remove programs
                    {
                        var server = InstalledProgramsHelper.GetInstalledProgramByName(new Regex("HP Software Agent for Citrix"));
                        if (server != null)
                        {
                            isInstalled = true;
                            name        = server.DisplayName;
                            version     = server.DisplayVersion;
                        }
                    }

                    if (isInstalled)
                    {
                        GetTextDriverInfo();
                    }
                }
                catch (Exception ex)
                {
                    Logger.Error(ex.ToString());
                }
            }
Пример #2
0
        public static string RDPAgentInfo()
        {
            StringBuilder output = new StringBuilder();
            var           agent  = new MSIProgram("59638050AABC6184181BF2015E0E24B6");

            if (agent.isInstalled)
            {
                output.Append(String.Format("{0} {1} {2}", agent.DisplayName, agent.DisplayVersion, agent.InstallDate));
            }
            else
            {
                output.Append("Not detected");
            }

            return(output.ToString());
        }
Пример #3
0
            //public bool IsSupported = false;

            public Client()
            {
                try
                {
                    // check if the new Citrix client exists (> 11.2)
                    var ctrxClient = new MSIProgram("9B123F490B54521479D0EDD389BCACC1");
                    if (ctrxClient.isInstalled)
                    {
                        isInstalled = true;
                        name        = ctrxClient.DisplayName;
                        version     = ctrxClient.DisplayVersion;
                    }
                    else // check if the old Citrix client exists (<11.2)
                    {
                        ctrxClient = new MSIProgram("6D0FA3AFBC48DDC4897D9845832107CE");
                        // If still not found, try searching in Add/Remove programs
                        if (ctrxClient.isInstalled)
                        {
                            name        = ctrxClient.DisplayName;
                            isInstalled = true;
                            version     = ctrxClient.DisplayVersion;
                        }
                        else
                        {
                            var client = InstalledProgramsHelper.GetInstalledProgramByName(new Regex("citrix +receiver", RegexOptions.IgnoreCase));
                            if (client != null)
                            {
                                isInstalled = true;
                                name        = client.DisplayName;
                                version     = client.DisplayVersion;
                            }
                        }
                    }
                }
                catch (Exception ex)
                {
                    Logger.Error(ex.ToString());
                }
            }
Пример #4
0
            public Server()
            {
                var ctrxServer = new MSIProgram("140EC50CBD3676447B77F9BC0310C32A");

                //If code does not exist we'll search Add/Remove programs
                if (ctrxServer.isInstalled)
                {
                    isInstalled = true;
                    name        = ctrxServer.DisplayName;
                    version     = ctrxServer.DisplayVersion;
                }
                else
                {
                    var server = InstalledProgramsHelper.GetInstalledProgramByName(new Regex("[x|X]en[A|a]pp"));
                    if (server != null)
                    {
                        isInstalled = true;
                        name        = server.DisplayName;
                        version     = server.DisplayVersion;
                    }
                }
            }
Пример #5
0
        public static string RDPAgentInfo()
        {
            StringBuilder output = new StringBuilder();
            var agent = new MSIProgram("59638050AABC6184181BF2015E0E24B6");
            if (agent.isInstalled)
            {
              output.Append(String.Format("{0} {1} {2}", agent.DisplayName, agent.DisplayVersion, agent.InstallDate));

            }
            else
              output.Append("Not detected");

            return output.ToString();
        }
Пример #6
0
            public Agent()
            {
                try
                {
                  var agentProduct = new MSIProgram("25A070105E2588740B2ED37C28A66094");

                  if (agentProduct.isInstalled)
                  {
                isInstalled = true;
                name = agentProduct.DisplayName;
                version = agentProduct.DisplayVersion;
                installLocation = agentProduct.InstallLocation;
                installDate = agentProduct.InstallDate;
                  }
                  else //If the upgrade code does not exist or has changed we'll search Add/Remove programs
                  {
                var server = InstalledProgramsHelper.GetInstalledProgramByName(new Regex("HP Software Agent for Citrix"));
                if (server != null)
                {
                  isInstalled = true;
                  name = server.DisplayName;
                  version = server.DisplayVersion;
                }
                  }

                  if (isInstalled)
                  {
                GetTextDriverInfo();
                  }

                }
                catch (Exception ex)
                {
                  Logger.Error(ex.ToString());
                }
            }
Пример #7
0
 public Server()
 {
     var ctrxServer = new MSIProgram("140EC50CBD3676447B77F9BC0310C32A");
     //If code does not exist we'll search Add/Remove programs
     if (ctrxServer.isInstalled)
     {
       isInstalled = true;
       name = ctrxServer.DisplayName;
       version = ctrxServer.DisplayVersion;
     }
     else
     {
       var server = InstalledProgramsHelper.GetInstalledProgramByName(new Regex("[x|X]en[A|a]pp"));
       if (server != null)
       {
     isInstalled = true;
     name = server.DisplayName;
     version = server.DisplayVersion;
       }
     }
 }
Пример #8
0
 //public bool IsSupported = false;
 public Client()
 {
     try
     {
       // check if the new Citrix client exists (> 11.2)
       var ctrxClient = new MSIProgram("9B123F490B54521479D0EDD389BCACC1");
       if (ctrxClient.isInstalled)
       {
     isInstalled = true;
     name = ctrxClient.DisplayName;
     version = ctrxClient.DisplayVersion;
       }
       else // check if the old Citrix client exists (<11.2)
       {
     ctrxClient = new MSIProgram("6D0FA3AFBC48DDC4897D9845832107CE");
     // If still not found, try searching in Add/Remove programs
     if (ctrxClient.isInstalled)
     {
       name = ctrxClient.DisplayName;
       isInstalled = true;
       version = ctrxClient.DisplayVersion;
     }
     else
     {
       var client = InstalledProgramsHelper.GetInstalledProgramByName(new Regex("citrix +receiver", RegexOptions.IgnoreCase));
       if (client != null)
       {
     isInstalled = true;
     name = client.DisplayName;
     version = client.DisplayVersion;
       }
     }
       }
     }
     catch (Exception ex)
     {
       Logger.Error(ex.ToString());
     }
 }