Update Component for iText Files: Streamlined Data Processing

Update Component for iText Files: Streamlined Data Processing

Kenneth Lv8

Update Component for iText Files: Streamlined Data Processing

Table of Contents

Disclaimer: This post includes affiliate links

If you click on a link and make a purchase, I may receive a commission at no extra cost to you.

ITextFileUpdatesComponent

Declaration

ITextFileUpdatesComponent : IDispatch

Overview

This interface facilitates accessing text file update operations and create a new one

Methods

NewTextUpdateFile(IFolder TargetFolder, String FileName) returns ITextUpdateFile
Creates a new text file update.

NewTextUpdateFileS(String PathToTargetFolder, String FileName) returns ITextUpdateFile
Creates a new text file update.

Properties

Array TextUpdateFiles
Gets the collection of text updates file operations

Example

$advinst = new-object -com AdvancedInstaller
$project = $advinst.CreateProjectS(“architect”)
$project.TextFileUpdatesComponent.TextUpdateFiles
$textFileUpdate =
$project.TextFileUpdatesComponent.NewTextUpdateFileS(“appdir\pgsql\data”, “postgresql.conf”)
$textFileUpdate.CreateBackupFileBeforeUpdate = $true
$textFileUpdate.AbortInstallationOnError = $true

$updateCheckpoint = $textFileUpdate.NewReplaceOperation(“checkpoint_completion_target”)
$updateCheckpoint.Find = “#checkpoint_completion_target = 0.\d+”
$updateCheckpoint.UseRegularExpressions = $true
$updateCheckpoint.Replace = “checkpoint_completion_target = 0.9”
$updateCheckpoint.MatchCase = $true
$updateCheckpoint.ReplaceOnlyFirstOccurence = $true

$updateStatementTimeout = $textFileUpdate.NewReplaceOperation(“statement_timeout”)
$updateStatementTimeout.Find = “#statement_timeout = \d+”
$updateStatementTimeout.UseRegularExpressions = $true
$updateStatementTimeout.Replace = “statement_timeout = 1800000”
$updateStatementTimeout.MatchCase = $true
$updateStatementTimeout.ReplaceOnlyFirstOccurence = $true

Copy

See also

IAdvinstProject

ITempFile

Did you find this page useful?

Please give it a rating:

Thanks!

Report a problem on this page

Information is incorrect or missing

Information is unclear or confusing

Something else

Can you tell us what’s wrong?

Send message

Also read:

  • Title: Update Component for iText Files: Streamlined Data Processing
  • Author: Kenneth
  • Created at : 2024-11-15 16:50:03
  • Updated at : 2024-11-21 19:43:38
  • Link: https://fox-sys.techidaily.com/update-component-for-itext-files-streamlined-data-processing/
  • License: This work is licensed under CC BY-NC-SA 4.0.