Hi
So, i have a package file i want to install, but i want to check to see if a file exists before installing this package.
If the file doesn't exist, then continue and install the package.
If the file DOES exist, then don't install the package.
Ideally i want to run a Before script in the Policy, and if Before script exit code is 0 (File doesn't exist) then it installs the package in the Policy too.
But if the before script exit code is 1, then just stop the policy there, and don't install the package.
Is this possible?
Can you stop a package installing, if the exit code matches a certain value from a before script.
Thanks