Both FileCopy()
and FileInstall()
have no arguments to set file attributes (You can see this in the function reference).
You need to move/copy the file to the intended location and then set the file attributes. FileSetAttrib()
serves just that purpose.
FileCopy("nefarious.dll", "/path/to/innocent_looking.dll") FileSetAttrib("/path/to/innocent_looking.dll", "+H")