You are deploying custom software using a batch file and are getting "Incorrect Function" errors.
The "Incorrect Function" error when deploying custom software like Adobe or Microsoft Office is returned by the operating system. Most of the time, this indicates that some batch file parameters are not recognized, not suited for the unattended setup/silent mode, or the required files are referenced incorrectly.
In most cases, you should accurately follow the deploying custom software steps using the parameters for a silent install and ensuring that the field "Deploy the file at location" points to the deployment executable file's correct location.
When using a batch file, it is important to correctly reference the files inside the script and distinguish between the main and auxiliary files. Refer to the How do I Deploy Custom Software or Install Program Using Msiexec via LanGuard Remediation Job? article for the Msiexec example.
Finally, the "Incorrect function" error can be caused by incorrect file references. For example, when the batch file uses a mapped network drive or runs an executable from the UNC path but forgetting to use the UNC notation to the supplementary file in the same directory.
Keep in mind that GFI cannot assist in building and testing custom deployment scripts or batch files as they are nonstandard deployments with variables specific to client environments.
Rerun the adjusted custom deployment job. If the issue persists, contact GFI LanGuard Support, submitting the patchagent.log by default found in C:\Windows\Patches, with a screenshot showing the time of the last remediation attempt.