Getting "The specified executable is not a valid application for this OS" when trying to run an installer

Was using this simple install script for a long time. Now I’m getting the error above. I’m not sure if it’s coincidence or not, but I did update the installer file. Maybe the script was failing before the new installer, maybe not.


Import-Module $env:SyncroModule
C:\temp\S1Agent.exe /SITE_TOKEN=$siteToken /SILENT /REBOOT

I have the current installer exe uploaded to Syncro and have it selected in Destination File Name.
I add the Site Token when I schedule the script.

What OS is the script running on?

It’s 64 bit Windows. I did figure this out.

I had uploaded an .msi file instead of an .exe. Once I got an .exe version of the installer that error went away.

Thanks for responding!