Full script here: https://gist.github.com/sithtoast/92ee19119e73ced8b159f388af4f8892
I am attempting to run an EXE from Powershell in an effort to automate things. The problem I'm running into is that when this certain EXE is called from Powershell, it does not run properly.
Elaborating on "not running properly": There is a stage of the installer that it backs up parts of the registry and fails there. The exact error is as follows -
Could not launch process regedit.exe /s "C:\Program Files\EVault\InfoStage\Director\~registry-1b683bce-c303-4c9b-8ccd-77b750318005\regbackup.reg" (The system cannot find the file specified.), error code: 2
However, when I browse to said EXE manually and run it - it works just fine. Other EXEs that are called the exact same way work as intended.
Start-Process 'C:\Blah\install.exe' -Wait
The script is kicked off in an administrator instance of Powershell. I'm not sure if the installer doesn't like being kicked off by PS or if there is something more screwy going on.
What else can I try?