I'm in a puzzle right now, and I could use your input.
I'm currently attempting to make a package bundle containing Firefox ESR 52.0.1, a powershell script containing instructions to re-enable NPAPI, and a Batch file instructed to run said powershell script.
My setup has the Firefox install and the Batch file as the two package components, and I have the powershell script attached as an additional file to the Firefox install. I can't run the Powershell script before the Batch file or else we'll run into complications, so my thinking is if I had the Powershell script attached as an additional file to the Firefox install, then it should theoretically copy over to the target device first while Firefox installs, and then once the installation completes, the next item in the package bundle (the batch file) should run next. NOTE: the batch file must be run from the same location as the Powershell script. Since all these files are being copied over to the same temp file within the target device, this would tell me that the Firefox install, the powershell script and the batch file are all in the same location (which they were; we confirmed).
However, once the package bundle completes, the fix is not applied, and it acts as though neither the batch file nor the powershell script were run. When we looked at the target machine and saw the files listed, we ran the batch file manually and everything applied like it should. The issue here is the order of operations with these packages.
At first, I would just include the powershell script as a part of the bundled package, but I DO NOT want it to run at any point during this task. It's set up in such a way that the batch file should be the only way this script should be utilized. I had also modified the batch file package to make it run dependent on the Powershell script, but our tests with that resulted in failure as well.
Now I'm at wits end today, and I wanted to ask the community if they had any ideas to brainstorm or solutions that may come from a similar experience. Please lend me your thoughts.