I am trying to use Test Complete/Test Execute to install third party installs on a test machine. I have written a Python script that calls a PowerShell script and installs all .msi files located within a folder using msiexec
.
The command I use to call msiexec
: Start-Process -FilePath msiexec.exe -ArgumentList ("/I
"$fullPath"", "/qb", "ALLUSERS=TRUE", "/norestart") -Wait
All but one of my installs work. The one that is not working properly opens up and displays the following message:
I'm executing these scripts from within TestExecute
so I am not able to close it, since the rest of my tests will not complete.
This installer I'm trying to use was not written by me so I'm not able to edit anything with that. Anyone know what would be causing this conflict between the .msi
and TestExecute
, or know of anyway that I can dig a little deeper to determine the cause?
File Overwrite: The setup that shows this dialog is trying to replace a file that is in use, hence you get this Restart Manager dialog. This is typical behavior for certain badly authored service setups (the setup should shut down the service on its own before trying to replace files), or setups that install applications that run all the time so files can't be replaced without fuzz.
Basic UI vs No UI: You are running with the
/qb
option which means Basic UI - this means you get simple progress and error handling dialogs showing up. Technical details are here: User Interface Levels.FilesInUse Dialog: An option that is not favored by me is to set the MSIRESTARTMANAGERCONTROL property to Disable as described here (all the way at the bottom). This disables the newer Restart Manager feature in Windows in favor of the old-style "FilesInUse Dialog". I am not sure if this dialog will be shown when you run your setup with
/qb
- it just might not show it - making your setup look completely silent (but it is not).Proper Silent Install: I would instead enable No UI by switching to using
/qn
instead. Themsiexec.exe
command line has a few "aliases"./quiet
maps to/qn
for example./passive
maps rougly to/qb!
. It looks like you are mixing and matching the newer "Standard installer Command-Line Options" and the "real" "msiexec.exe Command-Line Options". The former were introduced later than the latter:msiexec.exe
msiexec.exe
It shouldn't matter what options you use, but I would be consistent in my use of one or the other. I would hence replace
/norestart
withREBOOT=ReallySuppress
.So you could try something like this (
cmd.exe
version):Quick Parameter Explanation:
WICLB.exe: There used to be a tool from Wise which would help build
msiexec.exe
command lines via a GUI dedicated to do so. I describe it here: WICLB.exe. It disappeared as Wise went off the market, but there is a copy available from the Wayback Engine.Similar Issue: