OK .. yes your last post is accurate
As for question #1, you can add as many lines like '
Question #3 is a little tricky, as you need to restore the file first before you can detect it's precense for the install, I presume that is because you don't want to override the config file with the install ....If this is the case you could do the following.
(1) Create a TS group AFTER the state restore, with the TS condinition described in the original post
(2) First task in the group, rename the restored config file e.g. cmd /c ren c:\windows\myconfig.ini c:\windows\myconfig.bak. (Make sure that any 'CMD prompt' command line starts with cmd /c)
(3) Second Task, install the software
(4) Third Task, copy the renamed file back to the original file name e.g. cmd /c copy c:\windows\myconfig.bak c:\windows\myconfig.ini /y