Replace string in text file

About

This is custom created predefined action by Master Packager team that can find and replace text in file.

Master Packager Advanced Editor - Predefined Custom Actions - Replace string in text file

How to use it?

  1. Open MSI/MST with Master Packager

  2. Click on Custom Actions in left menu

  3. Click on Edit pencil for Custom Actions view

  4. Click on Predefined Actions tab

  5. Click “Add New Predefined Action” and choose “Replace string in text file”

  6. Click on 3 dots to find target file in which text file changes are needed.

  7. Set value that needs to be targeted under “Find what” section

  8. Set value that needs to be replaced under “Replace with” section

  9. Select target file encoding, so that action can execute correctly

  10. Select if regular expression is used

  11. Select if it is needed to look on values as case sensitive