Esempio n. 1
0
        private static void RemoveForceInstallation(ApplicationServer appServer, ApplicationWithOverrideVariableGroup appWithGroup)
        {
            // If this was a force install, remove it, so we don't keep trying to install it repeatedly.
            ServerForceInstallation forceInstallation = appServer.GetFromForceInstallList(appWithGroup);

            if (forceInstallation != null)
            {
                appServer.ForceInstallationsToDo.Remove(forceInstallation);  // Remove so we don't install again.
                ApplicationServerLogic.RemoveForceInstallation(forceInstallation);
            }
        }
Esempio n. 2
0
        private static bool ForceInstallIsThisAppWithGroup(ApplicationServer appServer, ApplicationWithOverrideVariableGroup appWithGroup)
        {
            bool forceInstallIsThisAppWithGroup = false;  // default

            ServerForceInstallation forceInstall = appServer.GetFromForceInstallList(appWithGroup);

            if (forceInstall != null)
            {
                forceInstallIsThisAppWithGroup = true;
            }

            Logger.LogDebug(string.Format(CultureInfo.CurrentCulture,
                                          "Checking if app should be installed. App server's ApplicationWithGroupToForceInstall matches the app group's " +
                                          "application in name and version: {0}. If this value is true, then the app will be installed. Note: If there " +
                                          "was a custom variable group, that matched by name as well. ApplicationServer.ApplicationWithGroupToForceInstall: {1}." +
                                          "^^^^ ApplicationWithOverrideVariableGroup: {2}.",
                                          forceInstallIsThisAppWithGroup,
                                          ForceInstallAsString(forceInstall),
                                          ApplicationWithGroupAsString(appWithGroup)), appServer.EnableDebugLogging);

            return(forceInstallIsThisAppWithGroup);
        }