# Using win\_package with product installations that exit the installer immediately

**URL:** <https://forum.ansible.com/t/using-win-package-with-product-installations-that-exit-the-installer-immediately/38178>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [June 30, 2023, 8:16pm UTC](https://forum.ansible.com/t/using-win-package-with-product-installations-that-exit-the-installer-immediately/38178 "2023-06-30T20:16:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tlemons](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@tlemons](https://forum.ansible.com/u/tlemons)\
**Post date:** [June 30, 2023, 8:16pm UTC](https://forum.ansible.com/t/using-win-package-with-product-installations-that-exit-the-installer-immediately/38178/1 "2023-06-30T20:16:10Z")

</div>

Hi

I’ve been trying to use the win\_package module to install Microsoft SQL Server Management Studio (SSMS). When the SSMS installation program (SSMS-Setup-ENU.exe) is executed at the command line, it exits immediately (though the installer continues to run as a Windows process). This behavior occurs even when I use the setup program switches ‘/install /quiet /norestart’.

Because of this behavior, the win\_package instance never gets a completion signal, apparently, and win\_package hangs for hours (I abort it with a CTRL-C).

Is this a known issue with win\_package? Should I be using a different Ansible module to install products like SSMS?

Thanks!  
tl

---

<div class="post-metadata">

**Author:** ![tlemons](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@tlemons](https://forum.ansible.com/u/tlemons)\
**Post date:** [July 11, 2023, 8:37pm UTC](https://forum.ansible.com/t/using-win-package-with-product-installations-that-exit-the-installer-immediately/38178/2 "2023-07-11T20:37:34Z")

</div>

Hi

I found the solution to my problem, using the win\_shell module instead of win\_package, and using the ‘start /wait’ command:

- name: Install Microsoft SQL Server Management Studio  
win\_shell: ‘start /wait C:\Users\Administrator\Downloads\SSMS-Setup-ENU.exe /install /quiet /norestart’  
args:  
executable: cmd

Hope this helps someone else.  
tl
