[Pre-Installation] :: Function failed, setting exit code to [60002].
Error Record:
Message : Exception calling “IsPathRooted” with “1” argument(s): “Ugyldige tegn i stien.”
InnerException : System.ArgumentException: Ugyldige tegn i stien.
ved System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
ved System.IO.Path.IsPathRooted(String path)
ved CallSite.Target(Closure , CallSite , Type , Object )
FullyQualifiedErrorId : ArgumentException
ScriptStackTrace : at Execute-Process, W:\ShareX\13.1.0\DeployFiles\AppDeployToolkit\AppDeployToolkitMain.ps1: line 2813
at , W:\ShareX\13.1.0\DeployFiles\Deploy-Application.ps1: line 131
at , : line 1
at , : line 1
PositionMessage : At W:\ShareX\13.1.0\DeployFiles\AppDeployToolkit\AppDeployToolkitMain.ps1:2813 char:8
+ … If (([IO.Path]::IsPathRooted($Path)) -and ([IO.Path]::HasExte …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Try this
Execute-Process -Path "`"$($ShareX.UninstallString)`"" -Parameters ‘/S’ -WindowStyle ‘Hidden’
Because there is an space in C:\Program Files\ShareX\unins000.exe