Packaging a .NET Application So It Will Run On A Computer Without .NET

后端 未结 3 769
一生所求
一生所求 2020-12-17 00:19

I have been recently trying to deploy a C# application on a computer that does not have .NET installed.

I know that there have been many questions around th

3条回答
  •  太阳男子
    2020-12-17 00:46

    If you are planning to deploy your application (and presuming the setup process doesn't need to be too complex), you can simply create a Setup project in Visual Studio and then bootstrap the prerequisites (.NET framework, and other stuff you think you might need).

    You can follow the steps described in these MSDN articles:

    • How to create a Setup project in Visual Studio
    • How to add prerequisites to a Setup project

    A walkthrough is given in this CodeProject article.

    For more complex deployment scenarios (such as installing device drivers along your app, or better localization support), I would recommend looking into WiX (Windows Installer XML) toolset. It's a toolset that builds Windows installation packages, which you configure using XML files inside Visual Studio. WiX also supports various bootstrapping scenarios.

    This page covers the differences between VS Setup projects, WiX, and InstallShield.

提交回复
热议问题