[wpkg-users] powershell: system cannot find the file

Dafydd Jones (techneg.it) dafydd at techneg.it
Thu Oct 20 16:49:46 CEST 2016

On 20 October 2016 at 15:17, Andreas Schamanek <schamane at fam.tuwien.ac.at>

> Hi fellow Wpkg'ers,
> For JRE, I switched to using powershell to remove old versions as
> suggested in https://wpkg.org/Java
> However, it seems that on some PCs `powershell` cannot be found:
>   2016-10-20 11:43:21, ERROR   : Command 'powershell -noprofile
>   -EncodedCommand DQAKAGYAbwByAGUA(...) B1AHQADQAKAH0A'
>   was unsuccessful.|The system cannot find the file specified.|
> And I think I had the same problem with some of my batch files.
> Apparently, powershell is installed in
> %SystemRoot%\System32\WindowsPowerShell\v1.0 but this is not in the
> Am I right? What's the recommended way to extend the PATH variable
> within a package XML?
> --
> -- Andreas

I use PowerShell extensively in my pkgs and have never come across this
problem, but rather than extending the PATH why don't you just specify the
full path to the powershell command?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20161020/620c76cb/attachment.html>

More information about the wpkg-users mailing list