From 34108f78d8cb3414871086a2f46a046703db13eb Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 1 Aug 2024 22:52:51 +0200 Subject: [PATCH] Declare `InstallerAction` in a separate file --- scripts/Windows/Scripts/Software.ps1 | 8 ++------ scripts/Windows/Types/InstallerAction.ps1 | 5 +++++ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 scripts/Windows/Types/InstallerAction.ps1 diff --git a/scripts/Windows/Scripts/Software.ps1 b/scripts/Windows/Scripts/Software.ps1 index d00f66e9..5811b4e1 100644 --- a/scripts/Windows/Scripts/Software.ps1 +++ b/scripts/Windows/Scripts/Software.ps1 @@ -1,12 +1,8 @@ . "$PSScriptRoot/Config.ps1"; - -enum InstallerAction { - Install - Configure - ConfigureUser -} +. "$PSScriptRoot/../Types/InstallerAction.ps1"; $null = New-Module { + . "$PSScriptRoot/../Types/InstallerAction.ps1"; $userArgument = "name"; <# diff --git a/scripts/Windows/Types/InstallerAction.ps1 b/scripts/Windows/Types/InstallerAction.ps1 new file mode 100644 index 00000000..a4183fef --- /dev/null +++ b/scripts/Windows/Types/InstallerAction.ps1 @@ -0,0 +1,5 @@ +enum InstallerAction { + Install + Configure + ConfigureUser +}