code_junkie

PowerShell Windows Installer Com Object

Nov 13th, 2011
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $installer = new-object -comobject "WindowsInstaller.Installer"
  2. $database = $installer.OpenDatabase("C:TempSetup.msi", 1)
  3.  
  4. $installer = new-object -comobject "WindowsInstaller.Installer"
  5. $database = $installer.InvokeMethod("OpenDatabase","C:TempSetup.msi", 1)
Add Comment
Please, Sign In to add comment