A .NET 4.0 application needs to run without errors after system upgrade from Windows XP to Windows Vista.
When application is installed in XP, the shortcut is added to startup folder so it starts with the system. After system upgrade, on first system start, application crashes with .NET Initialization Error. It's because .NET Framework just begins to upgrade on first system start. When .NET upgrade finishes, application runs correctly.
The question is: can you see some clever workaround for this problem? Application doesn't have to start on first boot after upgrade, but it must not display an .NET Initialization error.