分发IronPython应用程序

分发IronPython应用程序

问题描述:

我正在考虑使用IronPython开发一个小型应用程序,但是我想将我的应用程序分发给非技术人员,因此理想情况下,我希望能够为他们提供我的应用程序的标准快捷方式以及他们所需的说明首先安装IronPython。

I'm thinking of developing a small application using IronPython, however I want to distribute my app to non-techies and so ideally I want to be able to give them a standard shortcut to my application along with the instructions that they need to install IronPython first.

如果可能,我甚至希望我的快捷方式检测IronPython是否不存在,并在这种情况下显示适当的警告(我可以使用一个简单的VbScript)

If possible I even want my shortcut to detect if IronPython is not present and display a suitable warning if this is the case (which I can do using a simple VbScript)

问题在于IronPython不会将自身放置在%PATH%环境变量中,因此,如果IronPython安装在非标准位置,我的快捷方式是

The trouble is that IronPython doesn't place itself in the %PATH% environment variable, and so if IronPython is installed to a nonstandard location my shortcut don't work.

现在我也可以告诉用户如果将IronPython安装到其他位置,则需要编辑此快捷方式并...,但是

Now I could also tell my users "If you install IronPython to a different location you need to go and edit this shortcut and...", but this is all getting far too technical for my target audience.

有没有万无一失的方式来分发依赖IronPython的应用程序?

Is there any foolproof way of distributing my IronPython dependent app?

我不会尝试找到IronPython-我将所有必要的IronPython运行时文件直接附加到您的应用程序中。那么它是100%可靠的:-)

I would not try to find IronPython - I would append all necessary IronPython runtime files directly to your application. Then it is 100% foolproof :-)