private static void RunServiceModelReg(string args, Version frameworkVersion)
        {
            string fileName = Installation.GetNetFrameworkDirectory(frameworkVersion) + "Windows Communication Foundation\\ServiceModelReg.exe";
            // use aspnet_regiis for 64 bit machines whenever possible
            string fileName64 = fileName.Replace("Framework", "Framework64");

            if (File.Exists(fileName64))
            {
                fileName = fileName64;
            }
            ;

            Installation.RunCommand(fileName, args);
        }
        private static void RunRegIIS(string args, Version frameworkVersion)
        {
            string fileName = Installation.GetNetFrameworkDirectory(frameworkVersion) + "aspnet_regiis.exe";
            // use aspnet_regiis for 64 bit machines whenever possible
            string fileName64 = fileName.Replace("Framework", "Framework64");

            if (File.Exists(fileName64))
            {
                fileName = fileName64;
            }
            ;

            Installation.RunCommand(fileName, args);
        }
Beispiel #3
0
        public static ActionResult ForgetOlderVersions(Session session)
        {
            string olderVersionDetected = session.GetPropertyValue(PropertyNames.OlderVersionDetected);
            string path = session.GetInstallDirProperty() + "MsiZap.exe";

            if (!string.IsNullOrEmpty(olderVersionDetected))
            {
                string[] olderVersions = olderVersionDetected.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
                foreach (var olderVersion in olderVersions)
                {
                    string args = string.Format("TW {0}", olderVersion);
                    Installation.RunCommand(path, args);
                }
            }
            File.Delete(path);
            return(ActionResult.Success);
        }