Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > .NET 2.0 SP2 Installation for VS 2005 app
 

.NET 2.0 SP2 Installation for VS 2005 app

I have an application which was developed in VS 2005 and I created an installation for it within VS. The problem is when it is installed on older machines that have .NET Framework 2.0 [No SP2], that it only detects whether or not .NET Framework 2.0 is on the machine, and hence will not run because it needs the SP2.

I do not see the SP2 in the prequisites when creating the MSI. How do I get that to display as a selectable in VS 2005? And if I am able to get that as a choice, presumably that will solve the issue, because on these target machines I installed the SP2 and it worked fine.

So, since that seems to be the issue, I just need to figure out how to make it as a prequisite selection in VS. And if I am able to get that in there, will it replace or remove the older version of .NET 2.0 on these machines?
John Grove - TFD Group, Senior Software Engineer, EI Division, http://www.tfdg.com
JohnGrove  Thursday, September 24, 2009 4:01 PM

I hate to break this to you, but there is no Service Pack 2 for .NET 2.0. Or for .NET 3.0 or .NET 3.5 or .NET 4.0. Do you mean SP-1?

If you want to distribute SP-1 for .NET 2.0 as a prerequisite, you need to first download the redistributable. Try this link:

http://www.microsoft.com/downloads/details.aspx?FamilyID=0c1b0a88-59e2-4eba-a70e-4cd851c5fcc4&DisplayLang=en

Then use the Bootstrapper Manifest Generator to create a prerequisite package for it, and copy it to the appropriate folder under Program files. (You'll have to find it. Try searching for dotnetfx.exe. On my Win7/VS2008 machine, the prerequisites reside in C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages.)

THen close and reopen Visual Studio and the prerequisite will appear, and you can select it.

Here's some info about the BMG:
http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/92d68fc3-3c00-4435-9d45-f781aad89ad1

And some instructions on using it:
http://jcrawfor74.wordpress.com/2008/02/27/bootstrap-manifest-generator-how-to-custom-pre-requisites/

RobinDotNet


Click here to visit my ClickOnce blog!
  • Marked As Answer byJohnGrove Friday, September 25, 2009 4:36 AM
  •  
RobinDotNet  Friday, September 25, 2009 2:29 AM

I hate to break this to you, but there is no Service Pack 2 for .NET 2.0. Or for .NET 3.0 or .NET 3.5 or .NET 4.0. Do you mean SP-1?

If you want to distribute SP-1 for .NET 2.0 as a prerequisite, you need to first download the redistributable. Try this link:

http://www.microsoft.com/downloads/details.aspx?FamilyID=0c1b0a88-59e2-4eba-a70e-4cd851c5fcc4&DisplayLang=en

Then use the Bootstrapper Manifest Generator to create a prerequisite package for it, and copy it to the appropriate folder under Program files. (You'll have to find it. Try searching for dotnetfx.exe. On my Win7/VS2008 machine, the prerequisites reside in C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages.)

THen close and reopen Visual Studio and the prerequisite will appear, and you can select it.

Here's some info about the BMG:
http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/92d68fc3-3c00-4435-9d45-f781aad89ad1

And some instructions on using it:
http://jcrawfor74.wordpress.com/2008/02/27/bootstrap-manifest-generator-how-to-custom-pre-requisites/

RobinDotNet


Click here to visit my ClickOnce blog!
  • Marked As Answer byJohnGrove Friday, September 25, 2009 4:36 AM
  •  
RobinDotNet  Friday, September 25, 2009 2:29 AM
Sorry Robin, yes you are right, SP1. I will try your suggestion tomorrow. Thank you.
John Grove - TFD Group, Senior Software Engineer, EI Division, http://www.tfdg.com
JohnGrove  Friday, September 25, 2009 4:36 AM

Good luck!

By the way, I think I gave you the wrong link to the Redistributable. That one is for the Compact Framework. Oops. Try this one:

http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en

RobinDotNet


Click here to visit my ClickOnce blog!
RobinDotNet  Friday, September 25, 2009 7:27 AM
I will try this when I get to work, but I am sure you are right! Thanks again Robin
John Grove - TFD Group, Senior Software Engineer, EI Division, http://www.tfdg.com
JohnGrove  Friday, September 25, 2009 1:31 PM

You can use google to search for other answers

Custom Search

More Threads

• Help! Error in deployment compilation
• ActivationUri file://unc_path
• Error when modifying clickonce manifest
• Changing the installer window icon
• simply create stardard setup.exe for clickonce using C++ project in VS 2008
• Problem installing from publish location after using application blocks
• Setup and deployment project + Environment variable
• Sign Tool Reporting an error when trying to deploy aplication
• Error on installing
• Mixed Assemblies SideBySide on Service Start Error