Page 1 of 1

What is the significance of AppVersionScanner.ps1

Posted: Tue Oct 27, 2020 10:24 pm
by ilyak
What is the significance of AppVersionScanner.ps1?

The script checks for this file, but it's missing on all workstations.

Re: What is the significance of AppVersionScanner.ps1

Posted: Wed Oct 28, 2020 2:14 pm
by Cubert
The LTscript creates a POSH script that parses the output of the chocolatey app versions request made to it. The LTScript checks by issuing a delete file command to make sure POSH is not there before writing the script. This was done to enforce only the POSH script we write and not execute a possible modified script from someone else.

This is by design and the failure is expected.

Re: What is the significance of AppVersionScanner.ps1

Posted: Wed Dec 16, 2020 3:09 am
by JvdMaat
I'm not sure I'm getting this.
The error (for us) is in the P4L Chocolatey for Labtech Maintenance Service script in line 95 of the ELSE section.
It basically throws the script out of the UPDATEAPPSVERSIONS section without doing anything. The PS1 file never gets created anywhere.

I'm trying to debug C4L, as we're trying to do software deployment and it's not doing anything.

Re: What is the significance of AppVersionScanner.ps1

Posted: Wed Dec 16, 2020 5:53 pm
by Cubert
Capture.PNG
Capture.PNG (47.13 KiB) Viewed 8307 times

Line 96? What version of Chocolatey for LabTech Maintenance script are you running?

Re: What is the significance of AppVersionScanner.ps1

Posted: Wed Dec 16, 2020 6:26 pm
by JvdMaat
I have:
This is a maintenance script used by the Chocolatey for Automate Plugin. Not for manual execution.
www.plugins4automate.com
http://support.plugins4automate.com

Auhor:Shannon Anderson
Date:06/09/2020
Version 3.0.0.35
2020-12-16 13_24_59-Window.png
2020-12-16 13_24_59-Window.png (27.01 KiB) Viewed 8303 times

Re: What is the significance of AppVersionScanner.ps1

Posted: Thu Dec 17, 2020 3:59 pm
by Cubert
You are correct, I was in Chocolatey Version 2 and not 3.

So yes that's is an issue, I have now corrected in build 3.0.0.39

https://delivery.shopifyapps.com/-/7ee2 ... 638c39c38b

JvdMaat wrote: Wed Dec 16, 2020 3:09 am I'm not sure I'm getting this.
The error (for us) is in the P4L Chocolatey for Labtech Maintenance Service script in line 95 of the ELSE section.
It basically throws the script out of the UPDATEAPPSVERSIONS section without doing anything. The PS1 file never gets created anywhere.

I'm trying to debug C4L, as we're trying to do software deployment and it's not doing anything.