# HG changeset patch # User moel.mich # Date 1297463366 0 # Node ID a608358af25801676a44c6671a65858009743639 # Parent d8079800a88889f2b01072a8faec472d9737a885 Added code to delete any kernel driver service that can't be opened before reinstalling it. diff -r d8079800a888 -r a608358af258 Hardware/Ring0.cs --- a/Hardware/Ring0.cs Tue Feb 08 22:02:29 2011 +0000 +++ b/Hardware/Ring0.cs Fri Feb 11 22:29:26 2011 +0000 @@ -112,7 +112,9 @@ driver.Open(); if (!driver.IsOpen) { - // driver is not loaded, try to install and open + // driver is not loaded, try to reinstall and open + + driver.Delete(); string fileName = Path.GetTempFileName(); if (ExtractDriver(fileName)) { if (driver.Install(fileName)) { @@ -124,7 +126,9 @@ report.AppendLine("Status: Opening driver failed"); } } else { - report.AppendLine("Status: Installing driver failed"); + report.AppendLine("Status: Installing driver \"" + + fileName + "\" failed" + + (File.Exists(fileName) ? " and file exists" : "")); report.AppendLine(); report.Append("Exception: " + Marshal.GetExceptionForHR( Marshal.GetHRForLastWin32Error()).Message); diff -r d8079800a888 -r a608358af258 Properties/AssemblyVersion.cs --- a/Properties/AssemblyVersion.cs Tue Feb 08 22:02:29 2011 +0000 +++ b/Properties/AssemblyVersion.cs Fri Feb 11 22:29:26 2011 +0000 @@ -16,7 +16,7 @@ The Initial Developer of the Original Code is Michael Möller . - Portions created by the Initial Developer are Copyright (C) 2009-2010 + Portions created by the Initial Developer are Copyright (C) 2009-2011 the Initial Developer. All Rights Reserved. Contributor(s): @@ -37,5 +37,5 @@ using System.Reflection; -[assembly: AssemblyVersion("0.2.1.12")] -[assembly: AssemblyInformationalVersion("0.2.1.12 Alpha")] \ No newline at end of file +[assembly: AssemblyVersion("0.2.1.13")] +[assembly: AssemblyInformationalVersion("0.2.1.13 Alpha")] \ No newline at end of file