Per your advice, I tried to make wyUpdate automatically execute (resume) our application after applying a successful update.
To do that, I use the following .xml:
<?xml version="1.0" encoding="utf-8"?><Versions> <AddVersion overwrite="true"> <Version>TARGET_VERSION</Version> <Changes>CHANGE_TEXT</Changes> <InheritPrevRegistry /> <InheritPrevActions /> <Files dir="basedir"> <Folder source="INSTALL_PROGRAM_FILES" insideonly="true" /> </Files> <Files dir="basedir\Bin"> <File source="INSTALL_PROGRAM_FILES\Bin\EXECUTABLE.exe" execute="after" startstyle="normal" waitforexit="false" retrollback="false" /> </Files> </AddVersion> <RemoveVersion ver="1.0" /></Versions>
But wyBuild complains : An error occured [sic] while trying to add versions from the file "wyBuild.xml":The file "app.exe" already exists in the target folder "Bin".
I wondered if the xml would handle this properly, and it does not. Basically, the second files= containing EXECUTABLE.exe needs to be allowed (should overwrite the existing entry for "app.exe" in the .wyp).
Additional <file source=...> should not error, just replace existing entries.
Make sense?
---PS: "occured" -> "occurred"