[Development] Qt 5 types under consideration for deprecation / removal in Qt 6
Danila Malyutin
danilamaljutin at gmail.com
Tue Jun 4 02:50:58 CEST 2019
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 <thiago.macieira at intel.com>:
> 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
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20190604/5004a869/attachment.html>
More information about the Development
mailing list