After updating a console application, it needs to run afterwards. The thing is, we'd like to use a head update but the console app requires dynamic arguments to be passed. We are trying to avoid having too much logic... ie; dumping the arguments into a file, updating and then checking for the existence of said file to get the previous arguments. I see there is a /startonerra argument but that only works when an error occurs. Is there a argument, maybe I overlooked, that will pass arguments to the executed file after a successful update? I do see where I can add static arguments in wyBuilder.
No, you have to specify the file as part of your update.
Leads me to my next question, if an update fails and gets rolled back, will it still be executed if the checkbox is checked on wyBuild, to run the file after the update? I don't want it to get into an infinite loop of failed updates.
When an update rolls back as a result of any wyUpdate failure (fail patching, etc.) then no file is executed. If you checked the "rollback on failure" option for one of your executables then obviously that executable will be run (and any executables that preceded it).
Is there a way to force old files to be removed. Example, delete an old .dll or config file that isn't being used anymore.
Yes. Let wyBuild handle it. Namely, follow the step-by-step walkthrough. Include all your files for every version. If wyBuild sees OLDVERSION has a file but NEWVERSION doesn't have that file, then wyBuild is smart enough to know that the file has to be deleted when wyUpdate updates your app.
Is there a way to NOT update a file if it has been modified without excluding it completely from the updater? Example, a config file that has user specific data.
Exclude the file from all versions.
I know I seen it somewhere but in the past hour of reading through the help, I can't find where it mentions roll backs and how to set them up. Can you link to it please?
wyUpdate handles rollbacks automatically if there's a failure in the update. You don't have to do anything special.