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 8 years ago

updated 8 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 8 years ago

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"
Preview: (hide)
link

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: 8 years ago

Seen: 569 times

Last updated: Jun 01 '16