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?
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!