disable version check

disable version check

avatar

Hi,

When I use the powershell command Set-WaykNowConfig -Global -VersionCheck false nothing happens.
When I use the command line option "C:\Program Files\Devolutions\Wayk Now\WaykNow.exe" config --global VersionCheck false, everything works like expected and i see the "VersionCheck": false appear in the c:\programdata\Wayk\WaykNow.cfg.

Is this option not implemented in the powershell commands?

Regards
Siegfried

All Comments (7)

avatar

Hi,

This does look like an oversight on our part, I don't see the VersionCheck option in the cmdlet. I'll see that it gets fixed.

Best regards,

Marc-André Moreau

avatar

Hi,

I just published an updated version of the WaykNow cmdlet: https://www.powershellgallery.com/packages/WaykNow/2020.1.4

I added a few automated tests this time to make sure that it works correctly:
https://github.com/Devolutions/WaykNow-ps/blob/master/pester/Config.Tests.ps1

One thing that did change, however, is that the original code was using a string 'true'/'false' instead of the bool type, so make sure to use $true / $false instead like this:

Set-WaykNowConfig -Global -VersionCheck $false


Best regards,

Marc-André Moreau

avatar

Hi,

Now the WaykNow.cfg does add the "VersionCheck", but it is always true, no matter if i use Set-WaykNowConfig -Global -VersionCheck $true or $false.

Regards
Siegfried

avatar

Hi,

I'm sorry about that, my tests didn't go far enough to catch this. I'll look into it and let you know when I have a fix.

Best regards,

Marc-André Moreau

avatar

Can you tell me if there is an error thrown in PowerShell, or if it just silently fails? I just want to make sure I can reproduce the same problem, since in my case I can manage to get an error.

Best regards,

Marc-André Moreau

avatar

No errors thrown in Powershell. It just always sets $true in de c:\programdata\Wayk\WaykNow.cfg file.

Regards
Siegfried

avatar

Hi,

I did a minor release with a fix for Set-WaykDenConfig, but I was unable to reproduce the issue without an explicit error being thrown. In all cases, it should definitely help:
https://www.powershellgallery.com/packages/WaykNow/2020.1.5

If the issue persists, you can help by enabling PowerShell tracing, running the command, and returning the output:

Set-PSDebug -Trace 1
Set-WaykNowConfig -Global -VersionCheck $false


Best regards,

Marc-André Moreau