It seems that if I set the AutomaticUpdater's wyUpdateCommandline property (the -basedir option, in particular) during design time - in XAML - things seem to run okay.
If I try setting it right after InitializeComponent is called (for my window), then setting the property seems to have no effect.
As a test, I tried setting a registry value with the "%basedir%" variable in wybuild.
If I set -basedir in XAML like this:<wy:AutomaticUpdater Name="autoUpdater" wyUpdateCommandline='-basedir="C:\Path\to\Dir\"' />The registry value gets C:\Path\to\Dir\ and the updates go to the proper location.
If I set it in code like this:InitializeComponent;string arg = "-basedir=\"" + "C:\\Path\\to\\Dir\\" + "\"";autoUpdater.wyUpdateCommandline = arg;
Then the registry value is just the current directory, not the one that I set it to.
I'm also unable to set a binding in XAML between it and the argument that I want to set it to, because it's not a dependency property.
I'd like to do this in the code-behind, because I don't know the absolute path to the directory that I want to set the -basedir option to.
Any suggestions on how to solve this?