Page 1 of 1

Script Analyzer Issue

Posted: Wed Apr 08, 2020 7:01 am
by Reddrgn2
Product, version and build:
64 b - primalscript 2020 - version 7.7.139
Operating system:
64 bit OS: win 10 enterprise

When using Sapien Script explorer, just updated to get explorer. Testing Analyzer and getting error "Starting Script Analyzer...PSScriptAnalyzer is not installed in its default location" I checked and in install location "C:\Program Files\SAPIEN Technologies, Inc\PrimalScript 2020" the analyzescript.exe is listed. I checked in 'C:\Program Files\WindowsPowerShell\Modules" there isn't anything there for script analyzer or like it.

When I open Primal Script and run script analyzer on a script it says the same thing but says "PSScriptAnalyzer is not installed in its default location0 error(s), 0 warning(s)" I have created errors, yep on purpose. It does not seem to be picking them up.

Is there something I missing or didn't do or need to install?

Re: Script Analyzer Issue

Posted: Wed Apr 08, 2020 7:21 am
by mxtrinidad
Thanks for reporting the issue. Our team will be investigating and getting back to you soon.

Re: Script Analyzer Issue

Posted: Wed Apr 08, 2020 7:52 am
by mxtrinidad
The PowerShell module "PSScriptAnalyzer" need to be installed under Windows PowerShell:

## - Open console as an Administrator, and execute the following line:
Install-Module -Name PSScriptAnalyzer

Close and open the Script Explorer, and try again. It should work now!

Re: Script Analyzer Issue

Posted: Wed Apr 08, 2020 8:20 am
by Reddrgn2
Thanks that worked