How to install Visual_Studio_Pro_2008_English_Core_MLF_X14-26326.iso on Windows machine with ansible

Hi Ansible Team,

I want to install Visual Studio(ISO file) on Windows machine with ansible. Below is my solution, but I met an issue to install it.

Solution:

  1. copy Visual_Studio_Pro_2008_English_Core_MLF_X14-26326.iso to Windows machine.
  2. Unzip ISO file to a directory.
  3. switch to “Setup” folder, and use “raw” module to execute the setup.exe file to install it.

Issue:

  1. use “raw” module to run the setup.exe file failed. Can’t install Visual Studio.

BTW: I also try to execute the setup.exe file with win_package, win_feature modules, but failed too.

How to install an EXE installer software on Windows machine? Many thanks

Thanks,
Li, Jian

Who can give me any suggestion? Many thanks!

I have not tried to do this, but I think visual studio setup.exe probably expects windows GUI, which is not available via winrm. Some windows installer programs have a silent or unattended option so check documentation for silent install command lie options.

Hope this helps,

Jon

Thanks Jon very much. It’s a good suggestion.