Overwrite on uninstaller copy

This commit is contained in:
Eric Reed 2013-02-26 07:59:57 -05:00
parent 098ba6db0d
commit d4690904fb

View File

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