Browse Source

Overwrite on uninstaller copy

Eric Reed 12 years ago
parent
commit
d4690904fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      MediaBrowser.Uninstaller/Program.cs

+ 1 - 1
MediaBrowser.Uninstaller/Program.cs

@@ -23,7 +23,7 @@ namespace MediaBrowser.Uninstaller
                 //copy the real uninstaller to temp location
                 var sourceDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? "";
                 File.WriteAllBytes(tempExe, File.ReadAllBytes(Path.Combine(sourceDir, "MediaBrowser.Uninstaller.Execute.exe")));
-                File.Copy(Path.Combine(sourceDir, "MediaBrowser.Uninstaller.Execute.exe.config"), tempConfig);
+                File.Copy(Path.Combine(sourceDir, "MediaBrowser.Uninstaller.Execute.exe.config"), tempConfig, true);
                 //kick off the copy
                 Process.Start(tempExe, product);
                 //and shut down