-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Labels
Keep Issue OpenWorking on Fix in developmentWorking on Fix in development
Description
This is what I get when I run the script:
PS C:\WINDOWS\system32> iwr -useb https://christitus.com/win | iex
iex : At line:12832 char:5
-
class WingetFailedInstall : Exception { -
~~~~~
Class keyword is not allowed in ConstrainedLanguage mode.
At line:12832 char:11
-
class WingetFailedInstall : Exception { -
~~~~~~~~~~~~~~~~~~~
Unexpected token 'WingetFailedInstall' in expression or statement.
At line:12838 char:5
-
class ChocoFailedInstall : Exception { -
~~~~~
Class keyword is not allowed in ConstrainedLanguage mode.
At line:12838 char:11
-
class ChocoFailedInstall : Exception { -
~~~~~~~~~~~~~~~~~~
Unexpected token 'ChocoFailedInstall' in expression or statement.
At line:12844 char:5
-
class GenericException : Exception { -
~~~~~
Class keyword is not allowed in ConstrainedLanguage mode.
At line:12844 char:11
-
class GenericException : Exception { -
~~~~~~~~~~~~~~~~
Unexpected token 'GenericException' in expression or statement.
At line:1 char:40
- iwr -useb https://christitus.com/win | iex
-
~~~- CategoryInfo : ParserError: (:) [Invoke-Expression], ParseException
- FullyQualifiedErrorId : ClassesNotAllowedInConstrainedLanguage,Microsoft.PowerShell.Commands.InvokeExpressionCom
How can I fix this?
I loved this when it worked.
John McIntyre
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Keep Issue OpenWorking on Fix in developmentWorking on Fix in development