vitgenkah / myob_ar_updater Goto Github PK
View Code? Open in Web Editor NEWPowershell script that attempts to get the next version of MYOB AccountRight MSI and install machine-wide
Powershell script that attempts to get the next version of MYOB AccountRight MSI and install machine-wide
$response = wget $clienturl -ErrorAction Stop
Returns result of request being aborted on servers that do not use TLS 1.2+ or higher by default.
MYOB only officially supports the latest two versions of MYOB AccountRight, we should add optional switch to uninstall old versions.
# Get the current version
$InstalledApps = Get-ChildItem -Path "HKLM:\SOFTWARE\WOW6432Node\MYOB\AccountRight Client" | Get-ItemProperty |select PSChildName
Can return
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
PS>TerminatingError(Invoke-WebRequest): "The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again. "
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.