I’ve put together a procedure to detect whether an endpoint is running a 32-bit or 64-bit operating system, then search for the installation status on the requred endpoint, and if it isn’t installed then download the correct installer depending on system architecture and then execute it with whatever switches you want (for example, silent installation with suppressed reboot.
This script supports parameters for Application Name, 32-bit and 64-bit installer URLs and installer parameters (e.g. /silent or /qn /quiet).
I’d prefer to have it just pull the file name from the download location and detect whether it is .exe or .msi based on that, however my knowledge level in Python is not where it used to be. Any improvements that you can make would be greatly appreciated and by sharing these I hope to help other MSPs who are using the C1 platform.
I’ve updated the script to no longer require a temporary file name or extension to be specified, it now keeps the file name the same based on the download URL.