Solving repetitive scripting dilemma

I have an application that has a montly update requirement.

So, every month, I have to create a task for the update which involves moving some installer folders with many subfolders and files and then running the installer.

My challenge is that every month, I have to create a brand new script since the update files change.

Is there a way to customize the script to reference a particular path on my machine or BigFix server such that I do not need to create a new script but just change the content on the update file location?

There are few ways:

  1. Usage of the Download Command - https://developer.bigfix.com/action-script/reference/download/download.html

    • In this scenario, you can create on the Root Server …/Uploads/ folder a folder for your application - you will update it occurdanly to your monthly routine
    • On the ActionScript you will use the download command to download those files
  2. Use REST API to Update the Content of the Deployment Task - which will contain the Prefetch statement of the new content and the Installation procedure

You can start with the Download option but I suggest to move to the usage of Prefetch - its more secure

If you need help and want to share some code we can help

2 Likes

I might misunderstand, but do you want a static script that processes a file that contains a list of files to be replaced ?
Use a site file and update that each month… The script parses that file which is propagated to every subscribed client ?