Deployment Tools Foundation
Replace Method (record)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► View ► Replace(Record)
Updates or deletes and inserts a Record into the View.


- record (Record)
- the Record to be replaced

The Record must have been obtained by calling Fetch()()(). Updates record if the primary keys are unchanged. Deletes old row and inserts new if primary keys have changed. Fails with a read-only database. This method cannot be used with a View containing joins.
See Modify(ViewModifyMode, Record) for more remarks.
Win32 MSI API: MsiViewModify

Exception | Condition |
---|---|
InstallerException | the replacement failed |
InvalidHandleException | the View handle is invalid |