Fix uninstall not working

This commit is contained in:
Vichingo455 2022-12-30 19:49:05 +01:00
parent 92550b9670
commit 0f310e883c
1 changed files with 3 additions and 2 deletions

View File

@ -91,6 +91,7 @@ namespace Driver_Easy_Loader
{
MessageBox.Show("Make sure to quit Driver Easy, then hit OK to start patching","Driver Easy Loader by Vichingo455",MessageBoxButtons.OK,MessageBoxIcon.Warning);
}
checkBox1.Checked = false; //just to separate the if functions
if (radioButton1.Checked)
{
try
@ -183,9 +184,9 @@ namespace Driver_Easy_Loader
{
File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Easeware\DriverEasy\License.dat");
}
if (Directory.Exists(@"C:\Users\Default\AppData\Roaming\Easeware\DriverEasy"))
if (File.Exists(@"C:\Users\Default\AppData\Roaming\Easeware\DriverEasy\License.dat"))
{
Directory.Delete(@"C:\Users\Default\AppData\Roaming\Easeware\DriverEasy");
File.Delete(@"C:\Users\Default\AppData\Roaming\Easeware\DriverEasy\License.dat");
}
}
catch