What is the significance of AppVersionScanner.ps1

Support and questions for using and managing Chocolatey NuGet inside of Labtech
Post Reply
ilyak
Posts: 8
Joined: Wed Dec 04, 2019 6:21 pm
4

What is the significance of AppVersionScanner.ps1

Post by ilyak »

What is the significance of AppVersionScanner.ps1?

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

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: What is the significance of AppVersionScanner.ps1

Post 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.

JvdMaat
Posts: 42
Joined: Wed Feb 21, 2018 1:31 am
6

Re: What is the significance of AppVersionScanner.ps1

Post 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.

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: What is the significance of AppVersionScanner.ps1

Post by Cubert »

Capture.PNG
Capture.PNG (47.13 KiB) Viewed 4083 times

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

JvdMaat
Posts: 42
Joined: Wed Feb 21, 2018 1:31 am
6

Re: What is the significance of AppVersionScanner.ps1

Post 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 4079 times

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: What is the significance of AppVersionScanner.ps1

Post 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.

Post Reply

Return to “Chocolatey For Labtech”