Execute-MSI's SkipMSIAlreadyInstalledCheck is adding TRANSFORMS=TRUE

//Execute-MSI's SkipMSIAlreadyInstalledCheck is adding TRANSFORMS=TRUE
Execute-MSI's SkipMSIAlreadyInstalledCheck is adding TRANSFORMS=TRUE 2017-10-30T20:47:14+00:00

The Toolkit Forums General Execute-MSI's SkipMSIAlreadyInstalledCheck is adding TRANSFORMS=TRUE

  • Author
    Posts
  • Virgil
    Participant
    Post count: 2
    #2387 |

    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?

  • Virgil
    Participant
    Post count: 2

    Duh. SkipMSIAlreadyInstalledCheck does not have a value. My assumption was that $true was a required value just as ContinueOnError does (both switches have “Default is: $false”)

You must be logged in to reply to this topic.