# How to install an exe file in windows via Ansible, this exe file will ask "click continue to begin" and it ask to accept the terms and conditions

**URL:** <https://forum.ansible.com/t/how-to-install-an-exe-file-in-windows-via-ansible-this-exe-file-will-ask-click-continue-to-begin-and-it-ask-to-accept-the-terms-and-conditions/40360>\
**Category:** Get Help\
**Tags:** windows, ansible\
**Created:** [February 19, 2025, 12:01pm UTC](https://forum.ansible.com/t/how-to-install-an-exe-file-in-windows-via-ansible-this-exe-file-will-ask-click-continue-to-begin-and-it-ask-to-accept-the-terms-and-conditions/40360 "2025-02-19T12:01:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![maheswar26](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@maheswar26](https://forum.ansible.com/u/maheswar26)\
**Post date:** [February 19, 2025, 12:01pm UTC](https://forum.ansible.com/t/how-to-install-an-exe-file-in-windows-via-ansible-this-exe-file-will-ask-click-continue-to-begin-and-it-ask-to-accept-the-terms-and-conditions/40360/1 "2025-02-19T12:01:06Z")

</div>

Hi,

Im trying to install an offline exe file which is downloaded in C drive of a windows machine via Ansible.

Manually if i run the setup file, first it ask to run as admin, 2nd it ask to click continue to begin, 3rd it ask to accept the terms and condition.

---

<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:** [February 19, 2025, 3:33pm UTC](https://forum.ansible.com/t/how-to-install-an-exe-file-in-windows-via-ansible-this-exe-file-will-ask-click-continue-to-begin-and-it-ask-to-accept-the-terms-and-conditions/40360/2 "2025-02-19T15:33:41Z")

</div>

There’s AFAIK no general way to handle this. If you have an installer file, than it may have command line options like /q for quiet or --silent or something similar.

Have you tried using win\_package with it yet?  
What application are you trying to install?

---

<div class="post-metadata">

**Author:** ![maheswar26](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@maheswar26](https://forum.ansible.com/u/maheswar26)\
**Post date:** [February 20, 2025, 4:10am UTC](https://forum.ansible.com/t/how-to-install-an-exe-file-in-windows-via-ansible-this-exe-file-will-ask-click-continue-to-begin-and-it-ask-to-accept-the-terms-and-conditions/40360/3 "2025-02-20T04:10:56Z")

</div>

Hi,

Im trying to install Intel® Fortran Compiler: Offline exe in windows via ansible.

---

<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:** [February 20, 2025, 11:01pm UTC](https://forum.ansible.com/t/how-to-install-an-exe-file-in-windows-via-ansible-this-exe-file-will-ask-click-continue-to-begin-and-it-ask-to-accept-the-terms-and-conditions/40360/4 "2025-02-20T23:01:07Z")

</div>

I ran the installer and here’s its CLI options, start using the `--silent` option and give it a try. You can run the program itself with ansible.windows.win\_command or pass the options to ansible.windows.win\_package, like so:

```yaml
- name: Install Intel compiler
  ansible.windows.win_package:
    path: c:\intel-fortran-compiler-2025.0.4.19_offline.exe
    arguments: --silent

```

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/a/af6a515fdf22252b2ecb0ef2129c6bd8d86ddea8.png)

---

<div class="post-metadata">

**Author:** ![maheswar26](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@maheswar26](https://forum.ansible.com/u/maheswar26)\
**Post date:** [February 21, 2025, 6:29am UTC](https://forum.ansible.com/t/how-to-install-an-exe-file-in-windows-via-ansible-this-exe-file-will-ask-click-continue-to-begin-and-it-ask-to-accept-the-terms-and-conditions/40360/6 "2025-02-21T06:29:41Z")

</div>

Thanks @hugonz ,

Im able to install the package.

---

<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:** [February 21, 2025, 1:17pm UTC](https://forum.ansible.com/t/how-to-install-an-exe-file-in-windows-via-ansible-this-exe-file-will-ask-click-continue-to-begin-and-it-ask-to-accept-the-terms-and-conditions/40360/7 "2025-02-21T13:17:43Z")

</div>

Cool! Can you mark the thread as solved? Also, how did you manage to accept the EULA? Was it a command line option?

---

<div class="post-metadata">

**Author:** ![maheswar26](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@maheswar26](https://forum.ansible.com/u/maheswar26)\
**Post date:** [February 24, 2025, 2:54am UTC](https://forum.ansible.com/t/how-to-install-an-exe-file-in-windows-via-ansible-this-exe-file-will-ask-click-continue-to-begin-and-it-ask-to-accept-the-terms-and-conditions/40360/8 "2025-02-24T02:54:08Z")

</div>

Sure, i will mark it as solved and thanks for your support.

i’ve added --eula accept in the argument, that worked for me.

I referenced this document and tried.

> **[(Completely) Silent install of Intel Fortran - MacOS & Windows](https://community.intel.com/t5/Intel-Fortran-Compiler/Completely-Silent-install-of-Intel-Fortran-MacOS-amp-Windows/td-p/1355289)**
>
> Hi - We are trying to install the Intel Fortran compiler silently, on Linux, MacOS and Windows. So far, the Linux silent install works fine, and we can install into an arbitrary directory. However, we're so far unable to install on MacOS or Windows...

arguments: --silent --eula accept

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 26, 2025, 2:54am UTC](https://forum.ansible.com/t/how-to-install-an-exe-file-in-windows-via-ansible-this-exe-file-will-ask-click-continue-to-begin-and-it-ask-to-accept-the-terms-and-conditions/40360/9 "2025-03-26T02:54:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
