Arguments not being sent to restarted application

Hello,

I have 2 issues.

1) I am sure I am setting the Arguments property of the AutomaticUpdater. I double check it in the ReadyToBeInstalled event (I log the Arguments property to a file). But after the updates are installed upon closing and opening the app, wyUpdate does not use the arguments to restart my application. Application is started without any arguments.

2) The ClosingForInstall property is never true. The AutomaticUpdater Control is included in Grid of the Window of the application (MainWindow). I am checking it after InitializeComponent() so it is initialized.

I am using the latest wyUpdate build (even though outdated now) and I followed the step-by-step walktrough. I am integrating the AutomaticUpdaterWPF to my WPF app, and using the .net 4.0 wyUpdate.exe client, system is Windows 10.

Best regards,Daniel

I have figured how to solve my problem #1. My guess about the cause is that the updater runs on a sepparate thread and either MainWindow constructor does not finish fast enough (I am not doing anything complicated though) or setting the Arguments property does not propagate fast enough and data are already sent to the Updater background worker.

So to make sure I set the arguments, I registered the BeforeInstalling event, and set the Arguments property there. That way it is guaranteed to be set.

Daniel