# win\_package unable to install .exe Chart Director

**URL:** <https://forum.ansible.com/t/win-package-unable-to-install-exe-chart-director/25180>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 3, 2017, 7:54pm UTC](https://forum.ansible.com/t/win-package-unable-to-install-exe-chart-director/25180 "2017-08-03T19:54:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniyal.javed](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@daniyal.javed](https://forum.ansible.com/u/daniyal.javed)\
**Post date:** [August 3, 2017, 7:54pm UTC](https://forum.ansible.com/t/win-package-unable-to-install-exe-chart-director/25180/1 "2017-08-03T19:54:37Z")

</div>

Hello, I am trying to install Chart Director which is an .exe file with ansible. I am trying to use win\_package to do the install as I have already checked for the registries in the uninstall directory (HKLM:Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall) after doing a manual install. Heres my playbook:

- name: install

win\_package:

name: install chartdir

path: C:\Windows\setup\_4.0.exe

product\_id: ‘{00065AC0-1AEC-4AB2-B5C3-79FBB228A9A1}’ #taken from the HKML path above after the manual install

state: present

After I run the playbook, my playbook just sits there and no information is spewed out with -vvvv.

Chart Director version im trying to install is 4.0.

Manually, all the InstallShield wizard is ‘Next’, ‘Next’, 'Next with no other user input. Any help would be appreciated

---

<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 4, 2017, 1:37am UTC](https://forum.ansible.com/t/win-package-unable-to-install-exe-chart-director/25180/2 "2017-08-04T01:37:35Z")

</div>

You would need to find out what the install arguments for a silent install are. I believe InstallShield uses ‘-s’ but you would need to determine if that is the case with this particular ex. Once you have found out what the silent argument is add it to your task like so

- name: install

win\_package:  
name: install chartdir  
path: C:\Windows\setup\_4.0.exe  
product\_id: ‘{00065AC0-1AEC-4AB2-B5C3-79FBB228A9A1}’  
arguments: ‘-s’  
state: present

---

<div class="post-metadata">

**Author:** ![daniyal.javed](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@daniyal.javed](https://forum.ansible.com/u/daniyal.javed)\
**Post date:** [August 10, 2017, 3:44pm UTC](https://forum.ansible.com/t/win-package-unable-to-install-exe-chart-director/25180/3 "2017-08-10T15:44:49Z")

</div>

Turns out the application I am trying to install does not have any silent options. Returns nothing when executed with .\setup-4.0.exe /? or .\setup-4.0.exe /h /help

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [August 13, 2017, 8:14pm UTC](https://forum.ansible.com/t/win-package-unable-to-install-exe-chart-director/25180/4 "2017-08-13T20:14:22Z")

</div>

In that case you’d have to repackage it using a msi tool or something.

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [August 14, 2017, 6:41pm UTC](https://forum.ansible.com/t/win-package-unable-to-install-exe-chart-director/25180/5 "2017-08-14T18:41:27Z")

</div>

If they used nsis to package try /sd

I think it is reasonable to ask the vendor to provide a silent installation option too. Point out that it is in their interest too - if you can automate installation, then doing automated testing against all supported versions of an operating system is easier.

Hope this helps,

Jon
