Configuration and personalization xml files gets overwritten

Hello,

If we have a couple of exe, a dll and an XML configuration and personalization file in version one and an update is available how would I provide an update with out overwriting the xml file? I read that you can specify a custom batch file to run before and after the update , can you point me toward this. I could not find where to start looking for this.

Thanks

If we have a couple of exe, a dll and an XML configuration and personalization file in version one and an update is available how would I provide an update with out overwriting the xml file?

The easiest way to do this is don't include the configuration & xml files in wyBuild. This way when your user updates to the latest version of your app wyUpdate patches all your exe, dll, and other files and ignores the XML & config files.

I read that you can specify a custom batch file to run before and after the update , can you point me toward this. I could not find where to start looking for this.

To run batch, exe, or any other executable file simply drag the file into wyBuild. Then check the "Execute file" checkbox.

[attachment=0]batch.files.in.wybuild.png[/attachment]

And if you include the batch file in the temporary folder, like shown in the picture, then the file will be cleaned up after the update is installed.

The screen shot that you have posted is of a different version than the one I downloaded last week from your site. 2.5.11 is the version that I have and it does not have the options to allow exe or bat to run before and after the upgrade. The only option that I have are:

Execute file after updating has finishedWait for execution to finish before continuing

Thanks,

You can only execute before & after when you're installing to the Temporary folder. You can only execute after if you're installing to any other folder.

The reason for this is that the files only exist in the Temporary folder before & after the files have been installed. Or to put it another way: how can you execute a file before it has been installed?