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

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.

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?

1 Like

Hi,

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

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:

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


2 Likes

Thanks @hugonz ,

Im able to install the package.

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

1 Like