I am trying to install an app (Arduino Create Agent) which installs under the user’s %APPDATA% folder. But the installer needs admin rights.
As I’ve always done in the past, prior to uploading this to Intune, I always run the Deploy-Application.exe as Administrator to test how the install goes and check for issues.
With this particular app, I can see that the files get written to %APPDATA% and that the agent is installed and running in the taskbar so it looks like the install completed. I even tried running the installer with the same parameters in an admin command prompt and I do get an exit code of 0. And yet the PSADT window that indicates the installation progress is still running and showing that the install is in progress as if it never detected the installer’s exit code. Could it be because the installer is a small one and completes very quickly (as soon as you execute it, it immediately exits successfully) that PSADT is not able to capture the exit code? Or is it something else?
I am using Execute-Process -Path “ArduinoCreateAgent-1.2.7-windows-amd64-installer-chrome.exe” -Parameters ‘–mode unattended’
Also, since this installer writes to the user’s %APPDATA%, should I be installing this under USER context instead of SYSTEM and using Execute-ProcessAsUser instead?
NOTE: the uninstaller is also written to %APPDATA% and not %PROGRAMFILES%