Automated install (silent) on windows

What is the issue or question you have?

What do you expect to happen?

What have you tried so far?

Upload the logfile using the :outbox_tray: button

I want to install the invest workbench on a Windows machine (Server 2022), but in an automated manner. Using the defacto standard, HashiCorp Packer.

This means I need to run the installer (invest_3.14.3_workbench_win32_x64.exe) on commandline.

The documentation states that it is possible, and parameters can be listed by running the exe with “/?” on the commandline.

But that does not work, it just start the graphical interface of the isntaller, and returns no information on the command line.

I want to run the installer for all users, with a silent install.
I have tried common parameters, like “/S” “/SILENT” “/QUIET”, but none seems to work.

How can I run the windows installer in an automated manner?

Hello @Martin_Amm , and welcome to the forums!

It looks like we need to update the documentation, as the /? flag used to work before we updated our installer process.

Having said that, the installer is still an NSIS installer, so the usual NSIS installer flags should apply, plus a few extras that are specific to the output of electron-builder. For a packer build, I’d guess you’ll want /S /allusers, assuming you want InVEST installed to the default location. If not, I believe the /D flag is the standard way to install InVEST to a custom directory. The /S flag will initiate a silent install (no GUI interactions) and /allusers will install for all users.

I forget if packer runs the above as administrator, but be sure to escalate privileges if it doesn’t!

I just updated the getting started page to reflect this change. Thanks for letting us know!

Hi there,

Very thanks for you prompt response. The parameters “/S /allusers” seem to do the trick. It does seem that the installer is case sensitive.

Kind regards,
Martin

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.