Desktop updates via Powershell

I check the github page https://github.com/Manager-io/Manager/releases in the mornings. If I notice an update I update through Powershell with a few commands strung together. In my case I always download Manager files to a D:\Downloads\Manager\ folder.

“wget” downloads slowly compared to a web browser so I put the kettle on after running it.

Notes:

wget to the semicolon = download the package

Add-AppxPackage …; = install the app.

Get-AppxPackage … = displays the Manager app details which have been installed. It’s a useful visual cue that it’s been installed, but not 100% necessary.

wget https://github.com/Manager-io/Manager/releases/latest/download/Manager-x64.appx -o D:\Downloads\Manager\Manager-x64.appx; Add-AppxPackage D:\Downloads\Manager\Manager-x64.appx; Get-AppxPackage -Name Manager

Then I rename the downloaded package to the currently installed version so that I can do a spot check if I’ve forgotten which version I’ve last installed.

$ver = (Get-AppxPackage -Name Manager).Version; Get-ChildItem "D:\Downloads\Manager\Manager-x64.appx" | Rename-Item -NewName {$_.BaseName + "." + $ver + $_.Extension}

Let me know if there’s a simpler way.

Also, once one has run the two commands they should stay in the Powershell history so one doesn’t need to paste them in the following time.

Powershell can be quickly opened by Win+X and i . I assume that Powershell is your default terminal for Windows as it doesn’t run in the older command prompt.

I’ve been having trouble installing the new desktop version of Manager — the one with the .appx extension. Although it comes bundled with all the necessary files for a proper installation, another issue crops up: my Windows 10 OS doesn’t recognize it, even after installing “App Installer” for Windows.

Here’s how I worked around it:

  1. Open PowerShell as Administrator
  2. Enter this command: Add-AppxPackage -Path "C:\Users\YourName\Downloads\Manager.appx"

NB: You can change the path to wherever you downloaded the Manager Desktop file. In my example, I downloaded it to Downloads, which is why the path shows C:\Users\YourName\Downloads\Manager.appx.

That’s it! Manager Desktop will install on your PC with no further hassle.