Have you tried running the script with "powershell –ExecutionPolicy Bypass" ? IRC, this should work for regular non-admin users to. If that does work, I think you can just pipe the script to "powershell -".
вт, 4 июн. 2019 г. в 01:54, Thiago Macieira <[email protected]>: > On Saturday, 1 June 2019 08:14:13 PDT Jean-Michaël Celerier wrote: > > xxd.ps1: > > param([String]$path) > > > > $bytes = [System.IO.File]::ReadAllBytes($path); > > $size = $bytes.length; > > > > $bytes = (($bytes | %{ "0x" + $_ ; }) | Out-String); > > $content = $bytes -replace "`r",", " -replace "`n","" -replace ".{2}$"; > > $res = "unsigned char foobar[] = { " + $content + " }; + `r`nunsigned int > > foobar_len = " + $size + ";`r`n"; > > echo $res > > > > Feel free to use as you see fit > > Best, > > Thanks. Unfortunately, it didn't go very far: > > File C:\Qt\qt5\qtbase\src\corelib\mimetypes\mime\encode.ps1 cannot be > loaded > because running scripts is disabled on this system. For more information, > see > about_Execution_Policies at > https:/go.microsoft.com/fwlink/?LinkID=135170. > + CategoryInfo : SecurityError: (:) [], > ParentContainsErrorRecordException > + FullyQualifiedErrorId : UnauthorizedAccess > > I know how to turn that off, but I needed Admin privileges to do that. I > don't > think it's going to be acceptable for a Qt build. > > It's much easier to require people to install Perl. > -- > Thiago Macieira - thiago.macieira (AT) intel.com > Software Architect - Intel System Software Products > > > > _______________________________________________ > Development mailing list > [email protected] > https://lists.qt-project.org/listinfo/development >
_______________________________________________ Development mailing list [email protected] https://lists.qt-project.org/listinfo/development
