aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Uninstaller/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Uninstaller/Program.cs')
-rw-r--r--MediaBrowser.Uninstaller/Program.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/MediaBrowser.Uninstaller/Program.cs b/MediaBrowser.Uninstaller/Program.cs
index 8ea1a950a..2947d1e15 100644
--- a/MediaBrowser.Uninstaller/Program.cs
+++ b/MediaBrowser.Uninstaller/Program.cs
@@ -24,8 +24,11 @@ namespace MediaBrowser.Uninstaller
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, true);
+
+ //get our pid to pass to the uninstaller so it can wait for us to exit
+ var pid = Process.GetCurrentProcess().Id;
//kick off the copy
- Process.Start(tempExe, product);
+ Process.Start(tempExe, product + " " + pid);
//and shut down
}
}