wyupdate fails to start up when only .NET 4.0 is installed

Hi,

I'm about to release a new app and would like to include automatic wyupdater with that app. My app needs the .NET 4 Client Framework in order to run. I ran into the following problem: on a machine that has installed the .NET 4 Client Framework only (not other .NET frameworks installed besides), wyupdate fails to start up:

Unable to find a version of the runtime to run this application.

From where / how do I get a wyupdate.exe that is compatible with the .NET4 client profile framework? Can I build it by myself using the sources available at google code?

Also I found a small glitch in the newly released automatic updater for WPF:derived from windows forms, the translation properties of the updater class contain and ampersand (e.g. &Cancel updating, ..) in order to mark up the mnemnonic. WPF, however uses the underscore for that purpose, therefore the property should be defined as "_Cancel updating" in the WPF dll.

Thanks for your help

Best regardsAndreas

This is because wyUpdate included with wyBuild (as of v2.6.2) requires .NET 2.0.

From where / how do I get a wyupdate.exe that is compatible with the .NET4 client profile framework? Can I build it by myself using the sources available at google code?

You can rebuild wyUpdate for .NET 4.0 Client Profile (it compiles perfectly). You can download the sources from the wyUpdate page, or checkout the source from our subversion repository:

svn checkout http://wyupdate.googlecode.com/svn/trunk/ wyupdate-read-only

You will also need to host your own version of wyUpdate on your servers. See "How to make a custom version of wyUpdate".

We will be simplifying this process soon. We'll include both a .NET 2.0 and a .NET 4.0 version of wyUpdate and let you choose which version to build and include with your app.

However, for now you'll have to compile your own copy. Sorry for the hassle.

Also I found a small glitch in the newly released automatic updater for WPF:derived from windows forms, the translation properties of the updater class contain and ampersand (e.g. &Cancel updating, ..) in order to mark up the mnemnonic. WPF, however uses the underscore for that purpose, therefore the property should be defined as "_Cancel updating" in the WPF dll.

You're right - we'll fix that for version 2.6.3.

As of wyBuild 2.6.3 we now ship with both wyUpdate for .NET 2.0 and wyUpdate for .NET 4.0 Client Profile. You can change which one you use by going to "File -> Properties -> wyUpdate":

[attachment=0]choose-wyupdate-version.png[/attachment]