Hey Scott,
Am I better off using a bat file in the "Temporary folder" to execute them in order?
Yes, that's the best way to handle special cases like this.
Hi,
I am using WyUpdate in standalone mode in my application for various logistical reasons. I have a situation where I would like to relaunch my application after update, but before I do that, I have a temp file encrypts app.config that needs to execute. I have set "execute after update" on the the main application exe in "Your Program's Folder" and also on the encryption exe in "Temporary Folder". However, the main exe is executing before the encryption exe.
Is there a way to specify the order these should run? Is there another method I should be using to achieve this goal? Am I better off using a bat file in the "Temporary folder" to execute them in order?
Thanks,Scott
Hey Scott,
Am I better off using a bat file in the "Temporary folder" to execute them in order?
Yes, that's the best way to handle special cases like this.
If you can control the code for your temp file, you could add a cmd line parameter to run your application after it executes.
What I ended up doing (for posterity's sake) was place my "encryption executable" in the Temp Folder, and also a bat file in the Temp folder. The bat file is very simple...
@ECHO OFFSTART "" %1
That way I can reuse it by providing a parameter in wyBuild "%basedir%[my app].exe"
Then I simply named my executables to run in order....
1 - encryptor.exe "wait for execution to finish before continuing = true"2- startapp.bat "wait for execution to finish before continuing = false"