View Single Post
Old 12-11-2022, 11:56 AM   #852
Hexmage
Junior Member
Hexmage began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2022
Device: Kobo Forma
Powershell closing automatically

Hello!
Maybe this is addressed already in any of the 57 pages of the thread, but I was facing a problem lately (That didn't happen before) and I came to solve it so I wanted to share it.

Basically PowerShell would close itself everytime I tried opening the script install.ps1. I came to know that it happened because it wasn't digitally signed, so I needed to change the powershell execution policy.

Just open powershell as an administrator, and type:
Code:
Set-ExecutionPolicy RemoteSigned
and later:
Code:
Y
Execute the script with right click open with powerhell and install the things and then change it back if you want with:
Code:
Set-ExecutionPolicy AllSigned
-----------------------------

Spoiler:
I actually opened it accesing through the powershell with
Code:
cd "your own directory of the script"
and then
Code:
.\install.ps1
But I guess once the execution policy is changed it allows to open it normally as well
Hexmage is offline   Reply With Quote