部署GTK应用夏普到Windows无需安装GTK# [英] Deploy GTK Sharp applications to Windows without installing GTK#

查看:300
本文介绍了部署GTK应用夏普到Windows无需安装GTK#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发的openSUSE下GTK#单声道应用程序,但我感兴趣的是所有三个平台上部署它(Windows 7中,雪豹和许多Linux发行版,我可以测试)。

I am developing a GTK# mono application under openSuse, but I am interested in deploying it for all three platforms (Windows 7, Snow Leopard and as many Linux distributions as I can test on).

为GTK#自带的单库,但对于Windows我不希望强迫用户安装GTK#部署在Linux上是没有问题的。有没有一种方法嵌入GTK#应用程序,或者至少其安装与安装我的程序的整合?

Deploying on Linux is not a problem as GTK# comes with the mono libraries, but for Windows I would not like to force the users to install GTK#. Is there a way to embed GTK# in the application, or at least integrate its installation with the installation of my program?

推荐答案

您可以在不强迫用户在Windows上安装GTK#.NET为在许多方面部署GTK#应用程序。

You may deploy GTK# applications without forcing users to install GTK# for .NET on Windows in a number of ways.


  1. 您可能的嵌入整单声道运行时(19 MB的开销)到您的应用程序。那么也不会有的任何的依赖关系,您的用户甚至不会需要安装.NET或MONO。 这里有一个指南(我觉得女妖用这个)。

  1. You may embed the entire Mono runtime (19 MB overhead) into your Application. Then there won't be any dependencies, your users won't even need to install .NET or MONO. Here's a Guide (I think Banshee uses this).

您可以所有GTK#程序集复制到程序目录。它不但是建议,因为你可能会碰到很多问题,如果用户安装了GTK运行的另一个版本。 (是GTK +也需要一个运行时)。

You may copy all the GTK# assemblies into your program directory. It isn't recommended however because you may run into a lot of problems if the user has another version of the Gtk runtime installed. (Yes GTK+ also needs a runtime).

您可以集成与应用程序的Windows安装程序的GTK#安装程序。 (您的用户将能够使用一个单一的点击安装这两个,没有强迫)。很多安装程序可以做到这一点。

You may integrate the GTK# installer with the Windows Installer of your application. (Then your users will be able to install both with a single click, no forcing). Many Installer programs can do this.

您可以使用包管理系统

您可以使用部署管理/依赖管理软件,但这是昂贵的,因为所有好的都是适当的。

You may use Deployment Management / Dependency Management Software, but this is expensive since all the good ones are propriety.

虽然这些变通办法可以节省麻烦您的用户,从长远来看,我建议选择 3 。它可能证明是值得让你的用户安装GTK#,因为其他解决方法可能最终给予更多的不便,用户不是一个简单的额外的安装。

Though these workarounds can save trouble for your users, in the long run I recommend option 3. It may prove worthwhile to have your users install GTK# because other workarounds may ultimately give more inconvenience to your users than a simple extra installation.

这篇关于部署GTK应用夏普到Windows无需安装GTK#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆