How to package .Net framework in Visual Studio project?
I have created a C#/.Net application using visual studio. I have also created an installer project that puts out two files:
- An MSI file
- Setup.exe file
In my installer project properties I have setup .Net 3.5 as a prerequisite.
What I would like my installer to do as as follows:
- Put out a single file (MSI/exe/whatever) that also includes .Net framework prerequisite
- The installer should check whether .Net framework is installed on the target machine. If not, it should install it from its own bundled copy. 开发者_如何学Go
Right now my installer sends people to the web for getting .Net. This is not the user experience I want. I need to distribute my app to machines which may not be online and may not have been kept upto date. Unfortunately for the bloated world, my clients need a solution, not a lecture.
Thanks for your help.
-Raj
As far as I know you cannot bundle the full .NET framework installation in an application MSI. If you have offline clients, then you must provide the full 230MB .NET 3.5 sp1 installation, which must be run before your client application's installer. This is available here.
精彩评论