I cannot get a process to run before the update and after the update

I am using the command line to build like so :wybuild.cmd.exe" "Uplink.wyp" /bu /bwu -add="newversion.xml" /upload -ve="1.54818" The newversion.xml file contents are shown below. This works great except for one thing. The "ConfigPersister.exe" is supposed to run before and after the update, but it only runs once. Whether it runs before or after seems to depend on it's position in the XML. How can I get my exe to run before the update AND after the update ?

James

<?xml version="1.0" encoding="utf-8"?><Versions> <AddVersion overwrite="true"> <Version>1.54818</Version> <InheritPrevRegistry /> <InheritPrevActions /> <Files dir="basedir"> <Folder source="\\ap21-arts-01\Apparel21\Uplink\1.54818\Files" insideonly="true" /> </Files> <Files dir="temp"> <File source="\\ap21-arts-01\Apparel21\Uplink\1.54818\Files\ConfigPersister.exe" /> <File source="\\ap21-arts-01\Apparel21\Uplink\1.54818\Files\Newtonsoft.Json.dll" /> </Files> <Files dir="temp"> <File source="\\ap21-arts-01\Apparel21\Uplink\1.54818\Files\ConfigPersister.exe" execute="before" elevation="elevated" startstyle="hidden" commandline="&quot;%basedir%UplinkService.exe&quot; get port" /> <File source="\\ap21-arts-01\Apparel21\Uplink\1.54818\Files\ConfigPersister.exe" execute="after" elevation="elevated" startstyle="hidden" commandline="&quot;%basedir%UplinkService.exe&quot; set port" /> </Files> </AddVersion></Versions>

Hey James,

The same filename in the same folder cannot be executed both before and after an update in wyBuild. You'd have to use a batch file (and execute that) in order to execute your app a second time.