When using Execute-Msi’s SkipMSIAlreadyInstalledCheck $true is adding TRANSFORMS=TRUE to the Execute-Msi command line.
The command that is being used:
$retval = Execute-Msi -Action ‘Install’ -Path ‘name.msi’ -Parameters ‘/norestart /qn’ -PassThru -ContinueOnError $true SkipMSIAlreadyInstalledCheck $true
it does not matter in what sequence the commands are the error still occurs.
I am using my own errHandler so I want the return value if not using SkipMSIAlreadyInstalledCheck the command returns a blank $retval.ExitCode and the whole installation fails.
Any ideas?