Search code examples
installshield

How to run an action / script after files all files are copied to target install dir?


Due to the buggy nature of InstallShield, it is incorrectly modifying my app.config files replacing <clear /> with <clear></clear>

After my app.config file is copied to install path, I want to run a custom action that can scan for all config files and do a standard find and replace.

I don't need code for the find and replace, what I want to know is how / where to put this custom action using Installshield?


Solution

  • Your best bet would be creating a deferred execution custom action and place it near the end of the execution sequence. This will guarantee it would run after the files have been installed.

    In the 'Custom Actions and Sequences', Create a new custom action of the appropriate type (depending on your implementation of this replacement action). Set it's In-Script Execution to 'Deferred' and in the Sequence section have add it to the Install Exec Sequence, After ScheduleReboot.