PSADT tells me executable is not valid for OS platform but cmd install works.

//PSADT tells me executable is not valid for OS platform but cmd install works.
PSADT tells me executable is not valid for OS platform but cmd install works. 2017-08-23T17:52:01+00:00

The Toolkit Forums General PSADT tells me executable is not valid for OS platform but cmd install works.

  • Author
    Posts
  • Richard
    Participant
    Post count: 4
    #2240 |

    In my Deploy-Application.ps1 file I have this line of code

    Execute-Process -Path "HedgehogClient.msi" -Parameters "/q /norestart /l*V C:\Apps\HHinstall_log.log"

    which throws the error: : Exception calling “Start” with “0” argument(s): “The specified executable is not a valid application for this OS platform.”

    However, if I open a command prompt window and run HedgehogClient.msi /q /norestart /l*V C:\Apps\HHinstall_log.log

    The application installs. When I check HHinstall_log I get “Installation success or error status: 0.”

    Any ideas what I’m doing incorrectly here?

  • Richard
    Participant
    Post count: 4

    Nevermind, I’m an idiot and did not RTFM.

    Execute-MSI -Action Install -Path 'HedgehogClient.msi' -Parameters "/q /norestart /l*V C:\Apps\HHinstall_log.log"

    works just fine…

You must be logged in to reply to this topic.