damienvanrobaeys / SelfX

MIT License
86 stars 19 forks source link

Download Scripts #5

Open xarly opened 3 months ago

xarly commented 3 months ago

Download scripts is not working

Invoke-WebRequest : No se puede validar el argumento del parámetro 'Uri'. El argumento es null o está vacío. Proporcione un argumento que no sea null o que no esté vacío e intente ejecutar el comando de nuevo. En C:\Users\user\AppData\Local\SelfX\Self_X.ps1: 122 Carácter: 28 + Invoke-WebRequest -Uri $Scripts_Link -OutFile $Script ... + ~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-WebRequest], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeWebRequestCommand Expand-Archive : La ruta de acceso "C:\Users\user\AppData\Local\Temp\Scripts_to_run.zip" no existe o no es una ruta de acceso válida del sistema de archivos. En C:\Users\user\AppData\Local\SelfX\Self_X.ps1: 123 Carácter: 5 + ... Expand-Archive -Path $Scripts_ZIP_File -DestinationPath $ ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (C:\Users\30...ipts_to_run.zip:String) [Expand-Archive], InvalidOperationException + FullyQualifiedErrorId : ArchiveCmdletPathNotFound,Expand-Archive

I see Self_X.ps1 is trying to get URI ffrom Issues_List.xml instead Tool_Config

$GUI_Config = [xml](get-content "$env:LOCALAPPDATA\SelfX\Issues_List.xml")
$Scripts_Link = $GUI_Config.Actions.GUI_Config.Link_Scripts