Skip to content

Commit

Permalink
fixing incorrect registry key deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
aloopkin committed Dec 29, 2019
1 parent 54dc9e8 commit 3ea9a99
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions MSIPackaging/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.8.0")]
[assembly: AssemblyFileVersion("1.1.8.0")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
2 changes: 1 addition & 1 deletion MSIPackaging/Script.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static public void Main(string[] args)
}
);
project.GUID = new Guid("bb0a8e11-24a8-4d7e-a7d6-6fc5bd8166d2");
project.Version = Version.Parse("1.1.8");
project.Version = Version.Parse("1.2.0");
project.LicenceFile = path + @"\MSIPackaging\Resources\gpl-3.0.rtf";
project.BannerImage = path + @"\MSIPackaging\Resources\banner.png";
project.BackgroundImage = path + @"\MSIPackaging\Resources\background.png";
Expand Down
6 changes: 4 additions & 2 deletions WinCertes/Config/RegistryConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ public bool isThereConfigParam(string startsWith)
/// </summary>
public void DeleteAllParameters()
{
Registry.LocalMachine.OpenSubKey(@"Software", true).DeleteSubKeyTree("WinCertes");
Registry.LocalMachine.OpenSubKey(@"Software").CreateSubKey("WinCertes");
foreach (string key in Registry.LocalMachine.OpenSubKey(@"Software\WinCertes").GetValueNames())
{
DeleteParameter(key);
}
}
}
}
4 changes: 2 additions & 2 deletions WinCertes/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.8.0")]
[assembly: AssemblyFileVersion("1.1.8.0")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]

0 comments on commit 3ea9a99

Please sign in to comment.