I am trying to create a self-patching app as follows:
- .Net WPF app determines whether a new version exists (of itself)
- This WPF app starts a .Net console app (process.Start) to perform the necessary
- The console app then performs some tasks and fires up the new version of the .Net WPF app (process.Start)
All works well, i.e. I can see the processes being started up as required, however when the console app starts the new instance of the WPF app, no window is visible - from a user's perspective it appears as if nothing loaded.
Any pitfalls I need to consider with such an approach - using console app to restart a Windows based UI?
Code starting the console (same on the console side starting the WPF app again)
var info = new ProcessStartInfo(commandFileName)
{
Arguments = args
}
Process.Start(info);
The console app is not visible using this.