3

How can I do a silent install of EnergyPlus on Windows?

I need to script the installation of EnergyPlus on a remote server for the purposes of continuous integration testing of eppy. I have this working on Travis CI (Linux-based) and am now trying to get it working on AppVeyor (Windows-based).

My problem is this needs to work unattended. Since the installer on Windows is an exe that launches a GUI (unlike the Linux installer script) this is causing me problems as there are various dialogs that need to be responded to.

Is there a command line installer for Windows, or a way of running the executable in silent/unattended mode?

Jamie Bull's avatar
5.1k
Jamie Bull
asked 2016-06-01 03:15:36 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2016-10-18 14:30:03 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

Answering my own question (and showing my ignorance of PowerShell/Windows):

There were two things missing in my original script. First, I needed to pass the /S (Silent) flag to automatically accept the defaults, and second I needed to pipe the output to Out-Null so that the install script would wait until the EnergyPlus installation was complete.

Here's the important command:

"& $env:ENERGYPLUS_DOWNLOAD_FILENAME /S | Out-Null"
Jamie Bull's avatar
5.1k
Jamie Bull
answered 2016-06-01 05:55:28 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments