- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Knowledge Base
- :
- Modify Text File – In Archive
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
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.
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.
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.
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.