tags:

views:

55

answers:

2

I'm making a test application for learning purposes. It's targetted for the .NET Framework 4 Client Profile.

I created a new Windows XP virtual machine that doesn't have a .NET Framework installed. Ideally I'd like to create a setup project for my little application and bundle that with the .NET Framework 4 Client Profile. I do not want my end users to download anything. This application should be installable offline without the need for an internet connection

So the end user would click my created Setup.exe and it would invoke the setup menu for the .NET Framework 4 Client Profile.

Thank you for your help.

+3  A: 

Yes, you can specify dependencies in your setup project. Under the "Detected Dependencies" it should say "Microsoft .NET Framework". If you want to change the behavior, right click on your setup project and hit "Properties" and click the "Prerequisites" button. From there, you can choose things that should be installed before your application is, and how they are provided - whether the setup will download them from the internet or distribute them with your application.

vcsjones
Serg
If you want the application to include the .NET Framework itself, use the "download prerequisites from the same location as my application". This makes your installer bigger, but doesn't require an internet connection. The "download from vendor site" keeps your installer smaller, but requires a internet connection. If you select "download prerequisites from the same location as my application", you'll see after you build the setup project that it puts the .NET Framework 4 Client Profile setup in a directory under "DotNetFX40Client".
vcsjones
That's brilliant, thanks a bunch. I'll test this out for sure.
Serg
+2  A: 

Is this what you're after?

The Microsoft .NET Framework 4 Client Profile redistributable package installs the .NET Framework runtime and associated files that are required to run most client applications.

Jon Skeet