是否可以在网页中嵌入 Citrix XenApp 并动态传递参数?

发布于 2024-08-22 09:21:25 字数 337 浏览 10 评论 0原文

所以,我对 Citrix 应用程序一无所知,所以也许可以为我指明正确的方向,甚至可以给我一些例子。

我需要能够运行桌面应用程序(安装在服务器上),但将其嵌入到 Web 应用程序 (ASP.NET) 中。

我们需要它感觉它非常集成,因此我们要将会话令牌传递给 Citrix 应用程序,以便它可以连接到 Web 数据库并“共享”同一会话。

此外,当我们打开与该应用程序的 Citrix 连接时,我们希望使用命令行参数或从网站与 Citrix 托管应用程序通信的其他方式,告诉它​​要显示哪个屏幕。

使用 Citrix 可以轻松实现这一切吗?使用其他 Windows 2008 终端服务可以做得更好吗?

So, I know nothing about the Citrix applications, so maybe I can be pointed in the right direction or even be given examples.

I need to be able to run an desktop application (which is installed on servers), but have it embedded in a web application (ASP.NET).

We need it to feel like it is pretty integrated, so We were going to pass a session token to the Citrix application, so that it can connect to the web database and "share" the same session.

Also, when we open a Citrix connection to that application, we wanted to use command-line parameters, or some other way of communicating to the Citrix hosted app from the website, to tell it which screen to bring up.

Is any of this easily do-able with Citrix? Can it be done better with something else Windows 2008 Terminal Services?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

jJeQQOZ5 2024-08-29 09:21:25

Vadym Tyemirov 的答案中的链接不再是最新的。这是来自更新后的链接:

将参数传递给已发布的应用程序

使用“发布应用程序”向导的“位置”页面输入命令行并将参数传递到已发布的应用程序。要修改设置,请从“操作”菜单中选择“应用程序属性”,然后选择“位置”。

将已发布的应用程序与文件类型关联时,符号“%*”(用双引号括起来的百分号和星号)将附加到应用程序命令行的末尾。这些符号充当传递到用户设备的参数的占位符。

如果已发布的应用程序未按预期启动,请验证其命令行是否包含正确的符号。默认情况下,XenApp 会在附加符号“%*”时验证用户设备提供的参数。对于使用用户设备提供的自定义参数的已发布应用程序,符号“%**”将附加到命令行以绕过命令行验证。如果您在应用程序的命令行中没有看到这些符号,请手动添加它们。

如果可执行文件的路径包含带空格的目录名称(例如“C:\Program Files”),则必须将应用程序的命令行用双引号引起来,以表明该空格属于命令行。为此,请按照以下说明在 %* 符号两边添加引号,然后在命令行的开头和结尾添加双引号。请务必在命令行的右引号和 %* 符号的左引号之间包含一个空格。

例如,将已发布的应用程序 Windows Media Player 的命令行更改为以下内容:

<前><代码>“C:\Program Files\Windows Media Player\mplayer1.exe”“%*”

整页:
http://docs.citrix.com/en-us/xenapp-and-xendesktop/xenapp-6-5/xenapp65- w2k8-wrapper/ps-publishing-landing-page/ps-pub-prop-name-v2/ps-pub-pass-parameters.html

The link in Vadym Tyemirov's answer is no longer current. This is from the updated link:

To pass parameters to published applications

Use the Location page of the Publish Application wizard to enter the command line and pass parameters to published applications. To modify the setting, from the Action menu, select Application properties and then select Location.

When you associate a published application with file types, the symbols “%*” (percent and star symbols enclosed in double quotation marks) are appended to the end of the command line for the application. These symbols act as a placeholder for parameters passed to user devices.

If a published application does not launch when expected, verify that its command line contains the correct symbols. By default, XenApp validates parameters supplied by user devices when the symbols “%*” are appended. For published applications that use customized parameters supplied by the user device, the symbols “%**” are appended to the command line to bypass command-line validation. If you do not see these symbols in a command line for the application, add them manually.

If the path to the executable file includes directory names with spaces (such as “C:\Program Files”), you must enclose the command line for the application in double quotation marks to indicate that the space belongs in the command line. To do this, follow the instructions below for adding quotation marks around the %* symbols and then add a double quotation mark at the beginning and the end of the command line. Be sure to include a space between the closing quotation mark for the command line and the opening quotation mark for the %* symbols.

For example, change the command line for the published application Windows Media Player to the following:

    “C:\Program Files\Windows Media Player\mplayer1.exe” “%*”

Full page:
http://docs.citrix.com/en-us/xenapp-and-xendesktop/xenapp-6-5/xenapp65-w2k8-wrapper/ps-publishing-landing-page/ps-pub-prop-name-v2/ps-pub-pass-parameters.html

白首有我共你 2024-08-29 09:21:25

使用传递给 launch.ica 的 ApplicationParam 参数,例如,

launch.ica?ApplicationID=Citrix.MPS.App.PublishedApp&ApplicationParam=/f%20/v:slashedParameter&UniqueID=1049713915

对于要获取参数的已发布应用程序,其命令行应以“%*”结尾

PublishedApp.exe “%*”

以下是文档的链接:http://support.citrix.com/proddocs/topic/xenapp6-w2k8-admin/ps-pub -pass-parameters.html

Use ApplicationParam parameter passed to launch.ica, e.g

launch.ica?ApplicationID=Citrix.MPS.App.PublishedApp&ApplicationParam=/f%20/v:slashedParameter&UniqueID=1049713915

For the published app to get the parameters its command line shall end with “%*”

PublishedApp.exe “%*”

Here is a link to the documentation: http://support.citrix.com/proddocs/topic/xenapp6-w2k8-admin/ps-pub-pass-parameters.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文