What are the steps to edit a file after it has been installed?
For example, you install an application which has a config file with certain defaults. But you also provide the end user with a dozen or so command line properties like DEBUG=on or SERVER="HostName" or PORT=555… that needs to be written to the installed config file.
I wrote a synchronous install immediate dll custom action called GetCommandLineParms() that gets all the properties and validates them - works great. Then I wrote another dll custom action ApplyUserParms() to edit the installed config file and replace old properties with new ones. Sounds simple enough.
None of the dll global variables are persisted from one call to the other which would have made things easy, but I can accept that.
It appears (?) that you cannot edit a file until it is actually installed which means the custom action has to occur deferred which also means all those properties are not accessible unless I use the CustomActionData property with a bunch of delimiters. That must be a better way.
Is it possible to edit the config file as it is being installed (like in a temp folder) instead of afterward. If so what would be the path since [AppDir] is the target.
Any guidance would be appreciated.
Thanks
Lon