Beispiel #1
0
        /// <summary>
        /// Download and install the provider
        /// </summary>
        public static bool Install(string providerName)
        {
            // Download the provider
            ProviderInfo       provider   = Providers.FindProvider(Providers.InstalledProviders, providerName);
            ProviderUpdateInfo updateInfo = DownloadProviderUpdateInfo(provider);

            // Check if update is required
            if (Common.CompareASProxyVersions(updateInfo.Version, provider.Version) == 1)
            {
                // Download the package and install it
                return(Install(updateInfo));
            }
            return(false);
        }