title: Update Value in msi (powershell)
body: <p>Good afternoon
  I need to change the values in the table MSI
  Usual choice of tables to make out, but here's the problem with the change.</p>
  
  <p>for example select:</p>
  
  <pre><code>$WindowsInstaller = New-Object -com WindowsInstaller.Installer
  $Database = $WindowsInstaller.GetType().InvokeMember(“OpenDatabase”, “InvokeMethod”, $Null, $WindowsInstaller, ($msi_path,0))
  $View = $Database.GetType().InvokeMember(“OpenView”, “InvokeMethod”, $Null, $Database, (“SELECT * FROM Control WHERE Control = 'LicenseText'”)) ....
  </code></pre>
  
  <p>($msi_path,0), 0  open table from read, if i try not 0 (1 or 2), I get an error:</p>
  
  <blockquote>
    <p>[MethodInvocationException: Exception calling "InvokeMember" with "5" argument(s): "OpenDatabase,DatabasePath,OpenMode"]</p>
  </blockquote>
  
  <p>Someone tell me what could be the problem. Or maybe there's another way to change the values in the table are interested in powershell.</p>