Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
3

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

asked 2016-06-01 03:15:36 -0600

updated 2016-10-18 14:30:03 -0600

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2016-06-01 05:55:28 -0600

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"
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2016-06-01 03:15:36 -0600

Seen: 544 times

Last updated: Jun 01 '16