How to update DuaScriptGen to run correctly on Windows Vista

I recently received a comment on my blog asking how to get the DuaScriptGen tool to work on Windows Vista.  I looked into this in more detail, and I found that the duascriptgen.exe.config file included with the tool only listed the .NET Framework 1.0 and 1.1 as supported runtimes.  It looks like I never got around to updating the config file once the .NET Framework 2.0 released.  In addition, I ended up not noticing the underlying issue because the Windows Vista systems that I have tried to run DuaScriptGen on recently both have the .NET Framework 1.1 installed in addition to the .NET Framework 2.0 that is included as a part of the OS on Windows Vista.

To fix this issue and allow DuaScriptGen to run on a Windows Vista system that does not have the .NET Framework 1.0 or 1.1 installed, I added the following line to duascriptgen.exe.config:

<supportedRuntime version="v2.0.50727"/>

I added this above the lines that refer to the .NET Framework 1.1 and 1.0 so that DuaScriptGen will use the .NET Framework 2.0 first if multiple versions are installed on the system.

In addition, I have uploaded a new version of DuaScriptGen that includes this fix to https://astebner.sts.winisp.net/Tools/duascriptgen_v11.zip.  If you want to use DuaScriptGen on Windows Vista, you can choose to download an updated version from this location or manually modify duascriptgen.exe.config with the change described above.