PDA

View Full Version : Edit .msi at runtime with PowerShell?



Cygnusx1
01-14-2016, 11:12 AM
Looking for a Powershell equivalent to opening Database. With vbscrit I could simply edit a Database at runtime by using:
Set View = Database.OpenView("SELECT * FROM `Registry` WHERE `<condition>")
View.Execute
Do
Set oRecord = Nothing
Set oRecord = View.Fetch
If oRecord Is Nothing Then Exit Do
~~Retrieve row information

View.Modify 6,oRecord 'delete

~~Enter new row information

View.Modify 7,oRecord
Loop
View.Close
Database.Commit

This would edit the .msi at runtime if the condition in the registry table was found
How to do this with Powershell?
Cannot find too much info on using Powershell with Installshield or .msi's in general.

Cygnusx1
02-01-2016, 09:34 AM
Microsoft Edge is supposedly being deprecated. My employer wants us to start using Powershell instead. If powershell cannot do the simplest of tasks within Installshield then we are forced to use what? Installscript?