mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-28 19:54:48 +03:00
Add pismo to installer and uninstaller
This commit is contained in:
@@ -249,6 +249,17 @@ namespace MediaBrowser.Installer
|
||||
return;
|
||||
}
|
||||
|
||||
// Install Pismo
|
||||
try
|
||||
{
|
||||
InstallPismo();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
SystemClose("Error Installing Pismo - "+e.GetType().FullName+"\n\n"+e.Message);
|
||||
return;
|
||||
}
|
||||
|
||||
// And run
|
||||
try
|
||||
{
|
||||
@@ -264,6 +275,17 @@ namespace MediaBrowser.Installer
|
||||
|
||||
}
|
||||
|
||||
private void InstallPismo()
|
||||
{
|
||||
// Kick off the Pismo installer and wait for it to end
|
||||
var pismo = new Process();
|
||||
pismo.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
|
||||
pismo.StartInfo.FileName = Path.Combine(RootPath, "Pismo", "pfminst.exe");
|
||||
pismo.StartInfo.Arguments = "install";
|
||||
pismo.Start();
|
||||
pismo.WaitForExit();
|
||||
}
|
||||
|
||||
protected async Task<PackageVersionInfo> GetPackageVersion()
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user