Install 32-bit or 64-bit application with parameters

Hello everyone,

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).

This is based on https://scripts.comodo.com/frontend/…and-install-it.

20181021-Install-application.json (10.9 KB)

Hello @troaxis

We have reviewed your script it has some little bit flaws in it. so we will fix those issue and come back to you soon

Thanks

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.

Have a great day!

Hello @Kristan

We are glad to have the customer with the coding skills like you. we really appreciate your works and efforts.

Here is the fixed version your script as you expected. Kindly refer the json

Let us know your valuable feedback

Thanks

20181015-32bit.json (11.4 KB)

This works great. One question I have, is it possible to have the script return a Failed result in ITSM if the application is already installed?

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.