private static void DeleteTypeAssemblyFileFromNetFramework(Type t, Version frameworkVersion) { string path = Installation.GetNetFrameworkDirectory(frameworkVersion) + Path.GetFileName(t.Assembly.Location); if (File.Exists(path)) { File.Delete(path); } path = path.Replace("Framework", "Framework64"); if (File.Exists(path)) { File.Delete(path); } }
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); }
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 CopyTypeAssemblyFileToNetFramework(Type t, Version frameworkVersion) { string path = Installation.GetNetFrameworkDirectory(frameworkVersion); string fileName = Path.GetFileName(t.Assembly.Location); if (Directory.Exists(path)) { File.Copy(t.Assembly.Location, path + fileName, true); } path = path.Replace("Framework", "Framework64"); if (Directory.Exists(path)) { File.Copy(t.Assembly.Location, path + fileName, true); } }