从服务器运行EXE并安装.net框架先决条件 [英] Run EXE from server and install .net framework prerequisites

查看:97
本文介绍了从服务器运行EXE并安装.net框架先决条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

单击"部署"不再是我的环境的软件版本选项。我们办公室有两种技术:.NET(wpf / windows)和Delphi。 Delphi将程序编译为单个exe,可以从服务器运行,无需安装
,不需要安装库(据我所知),可以直接创建服务器上的EXE快捷方式。 .NET Click Once无法与此相比,并且启动速度令人尴尬。我必须在发布时间
上添加几秒钟,因为我们需要在特定位置使用我们的应用程序的快捷方式 - 因此我必须创建快捷方式,而不是直接创建EXE(使用ClickOnce版本更改位置),而是设置。可执行程序。总的来说,启动最少需要5-6秒,相比之下,EXE需要1.5秒

Click Once deployment is no longer an option for software releases for my environment. We have two technologies in our office: .NET (wpf/windows) and Delphi. Delphi compiles programs to a single exe that can be run from the server with no installation necessary, requires no library installations (to my knowledge), can have a shortcut created directly to the EXE on the server. .NET Click Once cannot compare to this and is embarrassingly slow to launch. I've had to add several seconds onto the launch time because we need shortcuts to our apps in a specific location - so I had to create shortcuts, not directly to the EXE (location changes with ClickOnce releases) but to setup.exe. In total, it can take minimum 5-6 seconds to launch compared to 1.5 seconds for an EXE.

我尝试过ilmerge和ilrepack(微软应该默认使用的技术)到目前为止的产品)并且它们很难配置为WPF。 Ilrepack接近了,但实体框架引发了问题。

I tried ilmerge and ilrepack (technologies that should be default in Microsoft product by now) and they are difficult to configure for WPF. Ilrepack came close, but Entity Framework was causing issues.

所以我已经将最终的exe和dll复制到服务器上的某个位置。我将能够为用户直接创建一个快捷方式,并且加载时间大大改善。

So I've resorted to copying the final exe and dll's to a location on the server. I will be able to create a shortcut directly to the exe for users and the load time is much improved.

问题是用户可能没有最新的.net版本,我想要安装,或允许他们安装它。我没有创建一个安装项目,我没有使用ClickOnce。我将继续"发布"并从
复制文件的发布位置。我尝试将先决条件设置为"从以下位置下载先决条件"并指向服务器位置,但我收到错误:"要在
先决条件对话框中启用'从我的应用程序的相同位置下载先决条件',您必须下载文件'DotNetFX461 \ NDP461-KB3102436-x86 -x64-AllOS-ENU.exe'"。我已经尝试在我的计算机上安装它,它已经安装(当然)。理想情况下,我可以将.net exe放在一个位置,并让用户在运行exe时自动安装
,并且它们没有最新的.net。

The issue is that users may not have the latest .net version and I would like that to install, or allow them to install it. I am NOT creating a setup project and I am NOT using ClickOnce. I am going to continue to "Publish" and copy the files from the publish location. I tried to set prerequisites to "Download prerequisites from the following location" and point to server location, but I get the error: "To enable 'Download prerequisites from the same location as my application' in the Prerequisites dialog box, you must download file 'DotNetFX461\NDP461-KB3102436-x86-x64-AllOS-ENU.exe' ". I've tried to install this on my computer, it's already installed (of course). Ideally, I could put the .net exe in a location and have the user install it automatically when running the exe and they don't have the most current .net.

这是我在应用程序启动时需要编写的代码吗?或者有没有办法在发布设置上进行设置。

Is this something I need to code for on application start? Or is there a way to set this up on the publishing settings.

推荐答案

你好RLuther,

Hi RLuther,

感谢您在MSDN论坛上发帖。

Thank you for posting in MSDN forum.

此论坛是关于.NET Framework设置和服务的。由于您的问题与发布设置项目有关,

This forum is about .NET Framework setup and Servicing. As your issue is related to publish setup project,

我帮助您将其移至专业论坛以获得专门支持。

I help you move it to a much professional forum for dedicated support.

感谢您的理解。

Thank you for your understanding.

最好的问候,


这篇关于从服务器运行EXE并安装.net框架先决条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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