# I can't get win\_package to install any msi from a samba share

**URL:** <https://forum.ansible.com/t/i-cant-get-win-package-to-install-any-msi-from-a-samba-share/8577>\
**Category:** Get Help\
**Tags:** windows\
**Created:** [September 17, 2024, 8:49pm UTC](https://forum.ansible.com/t/i-cant-get-win-package-to-install-any-msi-from-a-samba-share/8577 "2024-09-17T20:49:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gabriel/32/4778_2.png) [@Gabriel](https://forum.ansible.com/u/Gabriel)\
**Post date:** [September 17, 2024, 8:49pm UTC](https://forum.ansible.com/t/i-cant-get-win-package-to-install-any-msi-from-a-samba-share/8577/1 "2024-09-17T20:49:49Z")

</div>

I have a samba share that has read and execute permissions to everybody. I can use win\_package to install .exe installers from there, but MSIs just hang forever. Calling the same MSI from a https URL works, and running win\_command: msiexec /qn /i //sambashare/installer.msi works too.

Anybody know why?

---

<div class="post-metadata">

**Author:** ![hugonz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/hugonz/32/503_2.png) [@hugonz](https://forum.ansible.com/u/hugonz)\
**Post date:** [September 18, 2024, 3:33am UTC](https://forum.ansible.com/t/i-cant-get-win-package-to-install-any-msi-from-a-samba-share/8577/2 "2024-09-18T03:33:20Z")

</div>

I experienced the same problem, but with exes that would install ok from a local path, and MSIs wouldn’t. I fixed it by using windows native paths in the path field (backslashed instead of forward slashes. You would do:

```yml
- name: Install MSI from SMB share
  ansible.windows.win_package:
    #Notice the backslashes, don't use double quotes here or they will be escape codes.
    path: \\sambashare\installer.msi

```

---

<div class="post-metadata">

**Author:** ![Gabriel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gabriel/32/4778_2.png) [@Gabriel](https://forum.ansible.com/u/Gabriel)\
**Post date:** [September 18, 2024, 2:02pm UTC](https://forum.ansible.com/t/i-cant-get-win-package-to-install-any-msi-from-a-samba-share/8577/3 "2024-09-18T14:02:19Z")

</div>

That was it 🤦‍♂️

Thank you very much
