Closed bovirus closed 7 years ago
Hum... The script works on Windows 10. Which version of Windows are you using? Which version of PowerShell (type command $PSVersionTable.PSVersion
at the PowerShell prompt)?
As a facility, you may want to use the registry file below.
https://github.com/qtlmovie/qtlmovie/blob/master/build/WindowsPowerShellTools.reg
Default action for double-click on a PowerShell script file in Windows Explorer is to edit the script file using notepad. We change this to execute the script. The output window is visible but is automatically closed after execution of the script. If you want the window to remain visible after execution, add a "pause" at the end of the script.
I always run the powershell from comamnd line.
I opened a DOS prompt with admin right where is available .ps1 file.
Then I run powershell (the prompt now is PS)
then I run .ps1 file with
./build-windows.ps1
I got the error reported.
I never tried to run PowerShell from a DOS window. PowerShell can be launched directly from the start menu. But I do not think it will change anything.
What is your version of Windows and PowerShell? With W10, PS is v5.1. With W7, the default is something like 2.x but you may install 3.0 at least from MS Download. PS 2.x is very old. If you have this one and W7, try to upgrade at least to 3.0?
I can confirm that in Windows 7 after updating Powershell to version 5.1 (installing Windows Management Framework 5.1) it works fine.
You can close the issue. Thanks.
@lelegard
Executing the .ps1 from powershell I got this error
In row:133 char:26