File transfer to C:\Program Files folder

Hi, I’m new to BigFix and picked up an activity to transfer files to C:\Program Files on end machines. I feel below approach should be followed. Please correct me if I’m wrong and provide suggestions accordingly.

  1. Upload the files to be transferred using Manage Software distribution.
  2. Create an action with action script as below,

// Download all specified files
begin prefetch block
add prefetch item name=<> sha1=<> size=<> url=SWDProtocol://127.0.0.1:52311/Uploads/name<>/xyz.exe.bfswd sha256=<>
end prefetch block

//create Appfolder

parameter “Appfolder” = “C:\Program Files\Win systems\software”

// All SWD files will go into a folder in the clients __BESData folder. This folder gets cleared on every restart.
parameter “baseFolder” = “__Download/”

continue if { exists folder (parameter “AppFolder”)}

// Move files into subfolders and unescape file names
move “__Download/name<>” “{parameter “AppFolder”}xyz.exe”

exit 0

Any help would be greatly appreciated