# win\_command installing application on window machine

**URL:** <https://forum.ansible.com/t/win-command-installing-application-on-window-machine/25171>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 3, 2017, 1:58am UTC](https://forum.ansible.com/t/win-command-installing-application-on-window-machine/25171 "2017-08-03T01:58:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cindy\_Lee](https://avatars.discourse-cdn.com/v4/letter/c/c77e96/32.png) [@Cindy\_Lee](https://forum.ansible.com/u/Cindy_Lee)\
**Post date:** [August 3, 2017, 1:58am UTC](https://forum.ansible.com/t/win-command-installing-application-on-window-machine/25171/1 "2017-08-03T01:58:29Z")

</div>

Hi,

I have some problems using Ansible with Windows  
I’m trying to install program to the window with win\_command.

Below is the part of the playbook which causes an issue.

---

<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:** [August 3, 2017, 5:29am UTC](https://forum.ansible.com/t/win-command-installing-application-on-window-machine/25171/2 "2017-08-03T05:29:03Z")

</div>

Hey Cindy

You look at using win\_package to install your exe, the only downside is that you need to know the product id of the application to run the task. Details on the module are at [http://docs.ansible.com/ansible/latest/win\_package\_module.html](http://docs.ansible.com/ansible/latest/win_package_module.html), there are also some examples on that page to show you how it works with exe’s.

As for why it is failing in win\_command it is probably due to the space in the path, Windows doesn’t play nicely with them. One thing I would try is use single quotes instead of double as well as looking at the application docs as to what an RC of 3 means.

Thanks

Jordan
