From c032a5d8b3f50242687201bb816e5bc328feb6e2 Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Fri, 21 Feb 2020 19:59:14 -0800 Subject: [PATCH] Add service install and uninstall methods. --- .../Agent.Installer.Win.csproj | 1 + Agent.Installer.Win/App.xaml | 4 +- Agent.Installer.Win/App.xaml.cs | 25 +- Agent.Installer.Win/MainWindow.xaml | 43 ++- Agent.Installer.Win/MainWindow.xaml.cs | 4 +- .../Models/InstallerSettings.cs | 6 + Agent.Installer.Win/Services/Executor.cs | 41 +++ .../Services/InstallerService.cs | 83 +++++- .../ViewModels/MainWindowViewModel.cs | 254 +++++++++++++++--- Agent/Program.cs | 6 - Shared/Models/InstallerSettings.cs | 6 + 11 files changed, 383 insertions(+), 90 deletions(-) create mode 100644 Agent.Installer.Win/Services/Executor.cs diff --git a/Agent.Installer.Win/Agent.Installer.Win.csproj b/Agent.Installer.Win/Agent.Installer.Win.csproj index a0495992..e08b3dc1 100644 --- a/Agent.Installer.Win/Agent.Installer.Win.csproj +++ b/Agent.Installer.Win/Agent.Installer.Win.csproj @@ -73,6 +73,7 @@ Designer + diff --git a/Agent.Installer.Win/App.xaml b/Agent.Installer.Win/App.xaml index 4849b39c..459d3733 100644 --- a/Agent.Installer.Win/App.xaml +++ b/Agent.Installer.Win/App.xaml @@ -1,8 +1,8 @@ - + StartupUri="MainWindow.xaml" Startup="App_Startup">