We are creating a custom version of ClickOnce using the System.Applicaton.Deployment namesapce forour WinForms app. This begins with a small stub module that quickly downloads via ClickOnce. It, in turn, checks for new versions of the many modules under its control that are plugged into the app as panels. If any of the modules have changed, they are downloaded as well with a custome progress screen. This is done in order to speed up the download process as well as provide additional infor during the download, such as displaying release notes, etc..
The problem is with the first module. It needs to restart prior to finishing its ClickOnce tasks. However, because ClickOnse loads into a different folder, Application.Restart restarts the original version rather than the updated one. As a consequence, developers have a popup telling users THEY must restart the app, which is not user friendly. It would be better to have ClickOnce restart the new controller app, if possible.
So, the question is, can this be done in programmatically in ClickOnce?