diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 072465f6..e361a88e 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -31,23 +31,20 @@ $sync.runspace.Open() # Create classes for different exceptions - class WingetFailedInstall : Exception { - [string]$additionalData +class WingetFailedInstall : Exception { + [string]$additionalData + WingetFailedInstall($Message) : base($Message) {} +} - WingetFailedInstall($Message) : base($Message) {} - } +class ChocoFailedInstall : Exception { + [string]$additionalData + ChocoFailedInstall($Message) : base($Message) {} +} - class ChocoFailedInstall : Exception { - [string]$additionalData - - ChocoFailedInstall($Message) : base($Message) {} - } - - class GenericException : Exception { - [string]$additionalData - - GenericException($Message) : base($Message) {} - } +class GenericException : Exception { + [string]$additionalData + GenericException($Message) : base($Message) {} +} $inputXML = $inputXML -replace 'mc:Ignorable="d"', '' -replace "x:N", 'N' -replace '^