Hello again,
I' using the AutomaticUpdater for my application. It's a WPF app, but I'm using the backend as I cannot (and don't want to) use the AutomaticUpdater for WPF (the WPF element MUST be in a window and cannot be in an user control etc.).
The problem:1. I start my application2. Mechanism starts to search for updates3. Updates found4. Start downloading updates5. Getting downloading failed error, that there is no connection to the newer wyUpdate.exe "wyUpdate exited prematurely":"Failed to connect to the new version of wyUpdate.exe"
6. The updater now continues to start my application over and over again with following parameters:[0] = "C:\\Users\\company\\wc\\5\\selfupdate\\base\\MyApplication.exe"[1] = "-cdata:C:\\company\\MyApplication\\client.wyc"[2] = "-basedir:C:\\company\\MyApplication\\ "[3] = "/autoupdate"[4] = "/ns"
I do have a single instance application and therefore I get a lot of messages like "instance already running" (from my instance helper).
I have also tried to update directly via the wyUpdate.exe and the urlargs. The download and the update was successful but after starting the application and after loading the backend, I get following:
1. Before downloading event2. Downloading failed, wyUpdate exit prematurely 3. Something tries to start the software with following parameters:[0] = "C:\\company\\MyApplication\\wyUpdate.exe"[1] = "/autoupdate"[2] = "-urlargs=..."
This time, the "instance already exists" message occurs only one time (means that my software is started only one more time).EDIT: After some testing I found out that wyUpdate.exe get replaced by my main application exe, but the name stays the same. - myapp.exe (375kb)- wyUpdate.exe (375kb)
EDIT2: After deleting wyUpdate.exe and client.wys from the output folder, deleting all updates and files; and then redistributing updates, the "replacement"-bug seems to be fixed, I can now update my application without any problems directly via the "wyUpdate.exe".The single instance problem when using the automatic updater backend still exists.
EDIT3: After several debug procedures I found out, that the closing is aborted and the update failed (occurs before the single instance error). The message is the same ("failed to connect to the newer wyUpdate.exe").After thinking a little bit and checking the website I noticed, that these arguments (from Point 6.) should be arguments for wyUpdate.exe and not for my software. Something is going wrong but I cannot found out the source of this call.