I wrote an auto-update application on C #, a problem arose in the launch of an already updated application.
If you manually start update, everything works fine, but if everything happens automatically, the process does not start, as if the launch command is simply ignored.
It all works like this:
- The main application comes the team to update;
- The main application starts the update.exe process (or update.bat) and closes;
- update downloads the new version and replaces the previous version;
- update launches the updated program (here is the problem).
win10 (admin rights), winXP (normal user), everything is done in the appdata root
PS I tried the option with the creation of a batch file, the result is similar, only when manually starting it works, I use System.Diagnostics.Process.Start ()