Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Powershell is not installed in the system #44

Closed
minimartbag opened this issue Jun 2, 2021 · 3 comments
Closed

Powershell is not installed in the system #44

minimartbag opened this issue Jun 2, 2021 · 3 comments

Comments

@minimartbag
Copy link

The following error appears when trying to install the MAS cmd
"==== ERROR ====

Powershell is not installed in the system.
Aborting...

Press any key to exit.."

However, Powershell appears to be installed already...

@WindowsAddict
Copy link
Member

WindowsAddict commented Jun 2, 2021

@minimartbag
Hi, this happens when path variables in the system are not correct.

To resolve this, add these lines after the @echo off (line number 2)

set "SysPath=%Windir%\System32"
if exist "%Windir%\Sysnative\reg.exe" (set "SysPath=%Windir%\Sysnative")
set "Path=%SysPath%;%Windir%;%SysPath%\Wbem;%SysPath%\WindowsPowerShell\v1.0\"

@DarthKeizer
Copy link

Thx had same prob

@WindowsAddict
Copy link
Member

Fixed in v1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants