Deploy C# application for offline computer
How can I create the install package for my C# application so that a computer without .NET and without internet can get all the requirements without the use of internet. Basically, is there anything I can do in visual studio to include .NET in my install folder so the user can use my program while n开发者_StackOverflowot enabling internet.
You can include .Net as a prerequisite in a VS Installer Project or an InstallShield project (InstallShield LE is available for free with VS2010). This will automatically create a bootstrap setup.exe
that installs .Net (if necessary), followed by your installer.
See this MSDN page for more info.
You'd have to include the .net installer msi and trigger it to install in the package. This would be akin to when you use other installers that trigger secondary installations like DirectX or Crystal Reports, etc.
Since there is no assurance that the user will follow through with the installation of the secondary package, you will need to handle that case.
Yes, you can include the entire .NET installer with your installer. Of course this means that your installer will grow significantly in size, but since that is your only option here it seems reasonable. Also be aware that, if you are targeting .NET 4.0, the installer does not include the .NET 3.5 runtime. You can include both if needed.
You can get the redistributable package here.
Yes. See the MSDN document: Using Visual Studio .NET to Redistribute the .NET Framework
精彩评论