Forum Discussion
Priyanka_Aggarwal
Jan 31, 2020Former Employee
Argument to pass in "Specify Installer Argument" field to have silent installation?
Hi Team, I am using MSIX Pcakaging Tool to convert some exes and msi installers to MSIX package. I want to have silent installation of these installers at STEP 5 (Installation) - that is no GUI ...
Dan Gough
Feb 07, 2020Brass Contributor
Priyanka_Aggarwal The starting folder of the process would be System32 I belive, which may cause some exe installers to break. Also MSIs are handled by msiexec.exe, so it depends on how the tool is launching the process whether or not the switch would be passed on.
Most reliable way I've found is to use an install.cmd file, and specify the startup exe and args as:
Path: C:\Windows\System32\cmd.exe
Args: /c "Path\Install.cmd"
Then make sure your cmd file plays nicely with an unknown current working dir by either starting with:
pushd "%~dp0"
Or putting %~dp0 in each command, e.g:
msiexec /i "%~dp0Setup.msi" /qb