You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Georg Potthast <no...@georgpotthast.de> on 2020/09/26 04:14:31 UTC

init-gradle-wrapper.bat will not run on Windows 10

I guess after one of the recent Windows updates the file 
init-gradle-wrapper.bat will not run anymore.

After downloading apache-ofbiz-17.12.04.zip and unpacking it I have problems 
running the init-gradle-wrapper.bat script in an administrator command 
window. I get the message like „The file 
"C:\ofbiz\gradle\init-gradle-wrapper.ps1" cannot be executed - the file 
"C:\ofbiz\gradle\init-gradle-wrapper.ps1" is not digitally signed.

I finally got it to work by changing the executionpolicy in the 
init-gradle-wrapper.bat file from „remotesigned“ to „bypass“:
Powershell.exe -executionpolicy bypass -File gradle\init-gradle-wrapper.ps1


Re: init-gradle-wrapper.bat will not run on Windows 10

Posted by Jacques Le Roux <ja...@les7arts.com>.
Thanks Georg,

Fixed, I would not have spotted it, I still use Windows 7 :)

Jacques

Le 26/09/2020 à 06:14, Georg Potthast a écrit :
> I guess after one of the recent Windows updates the file init-gradle-wrapper.bat will not run anymore.
>
> After downloading apache-ofbiz-17.12.04.zip and unpacking it I have problems running the init-gradle-wrapper.bat script in an administrator command 
> window. I get the message like „The file "C:\ofbiz\gradle\init-gradle-wrapper.ps1" cannot be executed - the file 
> "C:\ofbiz\gradle\init-gradle-wrapper.ps1" is not digitally signed.
>
> I finally got it to work by changing the executionpolicy in the init-gradle-wrapper.bat file from „remotesigned“ to „bypass“:
> Powershell.exe -executionpolicy bypass -File gradle\init-gradle-wrapper.ps1
>