# MSP Files

**URL:** <https://forum.ansible.com/t/msp-files/31855>\
**Category:** Ansible Project\
**Created:** [December 20, 2019, 6:39am UTC](https://forum.ansible.com/t/msp-files/31855 "2019-12-20T06:39:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anuj\_aggarwal](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anuj\_aggarwal](https://forum.ansible.com/u/anuj_aggarwal)\
**Post date:** [December 20, 2019, 6:39am UTC](https://forum.ansible.com/t/msp-files/31855/1 "2019-12-20T06:39:51Z")

</div>

How can I install .msp files from ansible modules without using win\_shell.

---

<div class="post-metadata">

**Author:** ![anuj\_aggarwal](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anuj\_aggarwal](https://forum.ansible.com/u/anuj_aggarwal)\
**Post date:** [December 21, 2019, 10:03am UTC](https://forum.ansible.com/t/msp-files/31855/2 "2019-12-21T10:03:09Z")

</div>

Can anyone help.

---

<div class="post-metadata">

**Author:** ![anuj\_aggarwal](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anuj\_aggarwal](https://forum.ansible.com/u/anuj_aggarwal)\
**Post date:** [December 23, 2019, 5:40am UTC](https://forum.ansible.com/t/msp-files/31855/3 "2019-12-23T05:40:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [December 24, 2019, 12:05am UTC](https://forum.ansible.com/t/msp-files/31855/4 "2019-12-24T00:05:48Z")

</div>

As the documentation for win\_package says,

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

[https://docs.ansible.com/ansible/latest/modules/win\_package\_module.html](https://docs.ansible.com/ansible/latest/modules/win_package_module.html)

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
