# Ansible win\_msi creates: does it work?

**URL:** <https://forum.ansible.com/t/ansible-win-msi-creates-does-it-work/16414>\
**Category:** Ansible Project\
**Created:** [October 3, 2014, 2:18pm UTC](https://forum.ansible.com/t/ansible-win-msi-creates-does-it-work/16414 "2014-10-03T14:18:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy\_Wang](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Andy\_Wang](https://forum.ansible.com/u/Andy_Wang)\
**Post date:** [October 3, 2014, 2:18pm UTC](https://forum.ansible.com/t/ansible-win-msi-creates-does-it-work/16414/1 "2014-10-03T14:18:36Z")

</div>

I’m using ansible 1.7.2, here’s my very basic playbook:

---

<div class="post-metadata">

**Author:** ![Chris\_Church1](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@Chris\_Church1](https://forum.ansible.com/u/Chris_Church1)\
**Post date:** [October 3, 2014, 4:19pm UTC](https://forum.ansible.com/t/ansible-win-msi-creates-does-it-work/16414/2 "2014-10-03T16:19:07Z")

</div>

>

---

<div class="post-metadata">

**Author:** ![Andy\_Wang](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Andy\_Wang](https://forum.ansible.com/u/Andy_Wang)\
**Post date:** [October 3, 2014, 5:07pm UTC](https://forum.ansible.com/t/ansible-win-msi-creates-does-it-work/16414/3 "2014-10-03T17:07:54Z")

</div>

Can anyone confirm this is how it works? I used a file that already exists but ansible still seem to tried to install (I saw msiexec being started). Nothing in the output indicates it skipped the task either:

TASK: [win\_msi path=“c:\temp\NewRelicAgent\_x64\_3.6.177.0.msi” creates=“C:\Program Files\New Relic” state=present] \*\*\*  
changed: [qa01rlaffvm01.qa.ruelala.lan]

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
qa01rlaffvm01.qa.ruelala.lan : ok=2 changed=1 unreachable=0 failed=0

This is the same output regardless if I have creates set or not

---

<div class="post-metadata">

**Author:** ![Chris\_Church1](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@Chris\_Church1](https://forum.ansible.com/u/Chris_Church1)\
**Post date:** [October 3, 2014, 7:29pm UTC](https://forum.ansible.com/t/ansible-win-msi-creates-does-it-work/16414/4 "2014-10-03T19:29:31Z")

</div>

Taking a closer look at that module, I think you’ve found a bug. I’ll work on a fix and some tests.

---

<div class="post-metadata">

**Author:** ![Michael\_Wozniak](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@Michael\_Wozniak](https://forum.ansible.com/u/Michael_Wozniak)\
**Post date:** [October 4, 2014, 3:40am UTC](https://forum.ansible.com/t/ansible-win-msi-creates-does-it-work/16414/5 "2014-10-04T03:40:16Z")

</div>

The win\_package module works better in my opinion (not merged yet). However you need to set the name of the package properly, which I’ve only been able to figure out by installing each package by hand and searching the registry for the name. The name has to match exactly.

I’ve also found some msi files that appear to have no name set.
