Run new exe after update issue.

My WPF app allows users to drag and drop files from Windows explorer into the app. The problem is that when there is an update and wyUpdate runs my exe after updating, my app rejects files from being dragged in. The mouse pointer just becomes a 'Not allowed' icon.

Are there permission options in wyBuild or is there something I can do in my code? Cheers.

Hey Karl,

Are you using the AutomaticUpdater, or are using wyUpdate as a standalone updater? The reason I ask is that if you're using wyUpdate running as a standalone updater (and you check an executable to be launched after your update) wyUpdate will run that under the admin account.

However if you're using the AutomaticUpdater, wyUpdate will start your app as the same user and elevation as Windows Explorer.

"Why does this matter?", you ask.

You can't drag and drop between processes of differing users and/or user levels (e.g. elevated, non-elevated, admin, non-admin, etc).

So, let me ask again: Are you using the AutomaticUpdater, or are using wyUpdate as a standalone updater?

I'm using wyUpdate directly:

string path = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "wyUpdate.exe"); Process updaterProcess = Process.Start(path, "-quickcheck -noerr"); updaterProcess.WaitForExit();

Would the following code be roughly equivalent to what I posted earlier?

wyDay.Controls.AutomaticUpdater au = new wyDay.Controls.AutomaticUpdater();au.ForceCheckForUpdate();

I don't really want to drag the control into my UI and I don't have a menu item to bind to like in your video. I'd like it to just check once for updates while starting.

Would the following code be roughly equivalent to what I posted earlier?

wyDay.Controls.AutomaticUpdater au = new wyDay.Controls.AutomaticUpdater();au.ForceCheckForUpdate();

No.

I don't really want to drag the control into my UI and I don't have a menu item to bind to like in your video. I'd like it to just check once for updates while starting.

You don't need to use a menu item at all. It's just recommended. Also, if you want to use the AutomaticUpdater you have to add it to the form at design time.

Why don't you want to add it to your UI? It could be completely hidden if you want it.