MSP Files

152 views
Skip to first unread message

anuj aggarwal

unread,
Dec 20, 2019, 1:39:51 AM12/20/19
to Ansible Project
How can I install .msp files from ansible modules without using win_shell.

anuj aggarwal

unread,
Dec 21, 2019, 5:03:09 AM12/21/19
to Ansible Project

Can anyone help.

anuj aggarwal

unread,
Dec 23, 2019, 12:40:59 AM12/23/19
to Ansible Project

When I am trying to install using win_package.
win_package:
          path: "path\\*.msp"
          product_id: auto
          arguments: /p /qn

I am getting this error.
fatal: [172.16.13.207]: FAILED! => {"changed": false, "msg": "failed to run install process (C:\\Citrix\\SCVMM\\PreReqs16\\AdminConsole_amd64.msp /p /qn): Exception calling \"CreateProcess\" with \"5\" argument(s): \"CreateProcessW() failed (%1 is not a valid Win32 application, Win32ErrorCode 193)\"", "reboot_required": false}

I also used patch=path/*.msp in arguement like
            win_package:
                path: "path\setup.exe"
                product_id: auto
                arguments: /client /i /IACCEPTSCEULA \p patch="path\\*.msp" \qn

But not able to install.
Can someone help.

Jordan Borean

unread,
Dec 23, 2019, 7:05:48 PM12/23/19
to Ansible Project
As the documentation for win_package says,

Installs or uninstalls a package in either an MSI or EXE format.


You cannot use win_package to install an msp file, your only alternative is to use win_command to call the relevant executable and arguments for them.

Thanks

Jordan
Reply all
Reply to author
Forward
0 new messages