I have a setup.exe bootstrapper created for me via Visual Studio 2010. I have uploaded it to a web server along with the application files. I then go to a computer that does not have the .NET 4 Client Profile on it yet and I run the setup.exe from the browser. The set up process begins as expected with the .NET 4 Client Profile install. I click Accept to the license agreement and let it install.
When the .NET 4 Client Profile finishes installing, the setup.exe bootstrapper then runs the ClickOnce install for my application. I click on the Install button of the typical ClickOnce install window. However I am then presented with a small System Update Required dialog window that reads as follows.
Unable to install or run this application. This application
requires your system to be updated to Microsoft
Common Language Runtime Version 4.0.30319.0.
More information on this system update can be found
by visiting the site here.
If I click on the "here" link, it just takes me to our web site.
I know .NET 4 Client Profile has installed correctly because If I click OK to this dialog and then run my setup.exe file again (or manually launch the ClickOnce install), it immediately proceeds with the install of my application without any problems.
I have also attempted clicking the Cancel button on the .NET 4 Client Profile installation, but this does not resolve the issue.
There are two scenarios:
1. Do not hit Cancel - .NET 4 CP finishes installing. Bootstrapper attempts to launch ClickOnce installation, but fails with error mentioned above. Manual launch of ClickOnce installation results in a successful install.
2. Hit Cancel - .NET 4 CP finishes installing, but bootstrapper does not attempt to launch ClickOnce installation. Manual launch of ClickOnce installation results in a successful install.