Download and install application from URL depending on environment variable

Hi Support Team!

In our organisation, we have some environment variables set in the deployment to identify the computer country, location, and several others.

We are currently using a customised version of the procedure “Download and install any application from the URL” (https://scripts.itarian.com/frontend…n-from-the-url) to download and install applications and it’s working fine. But, for some applications, we need to have several versions of the script, as the download URL depends on the country where the computer is deployed.

So I would need a modified version of the script to “Download and install any application from the URL” that can read the “ComputerLocation” environment variable and use the right download URL for that location. In case the variable is blank or does not exist, a different URL should be used. This would allow us to create a single monitoring procedure to launch the installation, as the application version downloaded and installed will depend on that environment variable.

Can you please create such script?

We have a support contract, so if it’s necessary I can open you a ticket for this, just to track and manage this script request.

Thanks a lot in advance for your help!

Regards,
– Javier Llorente
Devoteam - Endpoint Security

Hi @DevoteamEndpointSecu,

Thanks for your script request. We have asked our script developers to analyse and update you the script…

Kind Regards,
PremJK

Hi @DevoteamEndpointSecu,

Our script developers have analysed and requested some information.

This script can be possible if we hard code the urls links and environment variable into the script for each software,For testing this we need at least 5 sample URLs and sample environment variable with output ,We cannot redirect the url dynamically based on country and software ,For each software we need list of urls which needs to be hard code in the script every time in order to install a new software .For each software we need to know the urls based on country ,If’s it organization we need .org link ,if the software is commercial we need .com and .co links,If it has link based on countries kindly share the links for each countries such as .in,.nz,.om .

Can you kindly provide this requested information.

Kind Regards,
PremJK

Hi @PremJkumar

The “ComputerLocation” environment variable and the download URL relationship goes as follows:

FRGEN -> http://ardownload.adobe.com/pub/adobe/reader/win/AcrobatDC/2001220048/AcroRdrDC2001220048_fr_FR.exe
FRCDS -> http://ardownload.adobe.com/pub/adobe/reader/win/AcrobatDC/2001220048/AcroRdrDC2001220048_fr_FR.exe
DKGEN -> http://ardownload.adobe.com/pub/adobe/reader/win/AcrobatDC/2001220048/AcroRdrDC2001220048_en_US.exe
UKGEN -> http://ardownload.adobe.com/pub/adobe/reader/win/AcrobatDC/2001220048/AcroRdrDC2001220048_en_US.exe
MAGEN -> http://ardownload.adobe.com/pub/adobe/reader/win/AcrobatDC/2001220048/AcroRdrDC2001220048_fr_FR.exe
ESDCS -> http://ardownload.adobe.com/pub/adobe/reader/win/AcrobatDC/2001220048/AcroRdrDC2001220048_es_ES.exe

Let me know if you need anything else.

Thanks in advance for your help!

Regards,
– Javier Llorente
Devoteam - Endpoint Security

Hi @DevoteamEndpointSecu,

Please check this script developed by our script developers to suffice your needs
https://scripts.itarian.com/frontend/web/topic/script-to-download-and-install-application-from-url-depending-on-environment-variable

Please let us know, if you need any changes.

Kind Regards,
PremJK