Giter Site home page Giter Site logo

myob_ar_updater's People

Contributors

vitgenkah avatar jason-vitg avatar

Stargazers

 avatar

Watchers

 avatar

myob_ar_updater's Issues

Uninstall old versions

MYOB only officially supports the latest two versions of MYOB AccountRight, we should add optional switch to uninstall old versions.

Incorrectly detects 2023.9 as most recent version when 2023.10 is installed

# Get the current version
$InstalledApps = Get-ChildItem -Path "HKLM:\SOFTWARE\WOW6432Node\MYOB\AccountRight Client" | Get-ItemProperty |select PSChildName

Can return

PSChildName

2023.10
2023.8
2023.9

Which

$current = ($installedApps | Measure-Object -Property PSChildName -Maximum).maximum

Will incorrectly report that 2023.9 is the most recent version

Improve logging explanation of failed download "The remote server returned an error: (403"

This status indicates that the expected / tested for MSI version is not yet available for public download, or has not been uploaded yet,

log currently reads

Transcript started, output file is C:\_Scripts\MYOB_AR_Updater\Install-MYOB-AR-Client.log Latest Installed Version: 2023.8 PS>TerminatingError(Invoke-WebRequest): "The remote server returned an error: (403) Forbidden." Already Installed, nothing to do..

Would be better to do something like

Transcript started, output file is C:\_Scripts\MYOB_AR_Updater\Install-MYOB-AR-Client.log Latest Installed Version: 2023.8 Checking if next version (2023.9) is available for download yet Not yet available, latest version is still 2023.8, nothing to do..

Need to ensure we only suppress the result if it is "(403) forbidden", anything else indicates a separate issue that we want to know about.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.