This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Edit .msi at runtime with PowerShell?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 14, 2016
10:12 AM
Edit .msi at runtime with PowerShell?
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 `")
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.
Set View = Database.OpenView("SELECT * FROM `Registry` WHERE `
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.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 01, 2016
08: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?