Deploy the latest API when updating Redgate Monitor
I would like when installing the latest version of Redgate Monitor to have an option for it to deploy the latest version of the API as well to a location. The last few times I have done the install I have not updated the API right away as it been a set and forget thing. Comes the evening when it runs it fails due to the versions not being the same.
I have checked within the Program Files and 2/3 of the files are not there. (RedgateMonitor.psd1 and RedgateMonitor.psm1), so I cannot just have it import via that way.

-
Christopher Thompson commented
Hello Greg,
Thanks for the automatic download script. This will be easy enough to built into my scripts.
Thanks again
-
Greg Smulko (Redgate) commented
Hi Christopher,
Thanks for the idea. We'll consider it, but to be honest, there is a low chance that we'll implement this, I'm afraid. :(
You can automate the update on your side taking inspiration from the documentation at https://documentation.red-gate.com/monitor14/downloading-the-powershell-module-239668756.html , which is the recommended approach.
Alternatively, there is the RedgateMonitor.zip file in the install directory ready to grab, which contains the RedgateMonitor.psd1 and RedgateMonitor.psm1 (as well as Types.ps1) files. The default location is C:\Program Files\Red Gate\Redgate Monitor\Web\wwwroot\Files\PowerShell\Module\RedgateMonitor.zip - but we don't guarantee that this location won't change in the future versions of Monitor.
I hope that helps.
Best,
Greg