cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Modify Text File – In Archive

Modify Text File – In Archive

Introduction:
This article will help you understand how to modify a Text file present inside an archive.

Instructions:

Step1 : Create a new project.

Step2 : Go to the sequence tab and add Modify Text File—In Archive Action in your desired install phase.

Step3 : After that, you can select either an installed archive (can’t be used in the pre-install phase) or an existing archive.

Step4 : We will be using Existing Archive, so we will have to add the location of the archive in the Existing Archive text field.

cus1.png

Step5 : In the archive path, we will be adding the path to the text file inside the zip file. Here my archive is named TestArchive and contains a folder called Sample, which in turn contains a text file called greeting.

cus2.png

Step6 : Next, we will append the string "world" inside the text file.

Step7 : Select the Append radio button and enter the text "world" inside the TextArea provided.

cus3.png

Step8 : Build and run the installer, navigate to your selected archive, and check the text file inside. It now should contain the string "world!" on a new line.

Labels (1)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Jul 11, 2024 05:02 AM
Updated by:
Contributors