简体   繁体   English

如何在不在客户端系统上安装.NET框架的情况下从USB运行C#Windows应用程序

[英]How to run C# Windows application from USB without installing .NET framework on client system

Is it possible to run a C# .NET Windows application (.exe) from pendrive or USB without installing the .NET framework on the client system? 是否可以从pendrive或USB运行C#.NET Windows应用程序(.exe)而无需在客户端系统上安装.NET框架?

If so, how can I make it work? 如果是这样,我怎样才能使它工作?

I came across this product a couple of years ago - Salamander .net Linker . 几年前我偶然发现了这款产品 - Salamander .net Linker

No idea if it actually works as I didn't test it but it claims to do what you want. 不知道它是否真的有效,因为我没有测试它,但它声称做你想要的。 I cam across a couple of other products that claim the same thing but they were all fairly expensive for my needs hence the lack of testing them out. 我想到了其他一些声称同样的东西的产品,但它们对我的需求都相当昂贵,因此缺乏测试它们。

In order to run a C#.NET application in a computer you have to install de .NET framework on that target computer. 要在计算机中运行C#.NET应用程序,您必须在该目标计算机上安装de .NET框架。

At this time any machine with Windows XP SP3 or higher windows version (Windows Vista or Windows 7) have the .NET framewok installed. 此时,任何装有Windows XP SP3或更高版本Windows(Windows Vista或Windows 7)的计算机都安装了.NET framewok。

.NET applications require the .NET Framework to be installed. .NET应用程序需要安装.NET Framework。 However, there are some commercial "packers" that may be able to give you a deployable package that contains all the required dependencies. 但是,有一些商业“打包器”可能会为您提供包含所有必需依赖项的可部署包。 I'm not sure whether this would be a supported solution. 我不确定这是否是一个受支持的解决方案。

No, .NET sits on top of the windows API and needs the CLR and other dependencies to run. 不,.NET位于Windows API之上,需要运行CLR和其他依赖项。 Installers aren't the problem. 安装人员不是问题。 It does not matter if the exe runs from a pen drive, gets copied to the desktop or explicitly installed. 如果exe从笔式驱动器运行,被复制到桌面或显式安装,则无关紧要。

You could build a shell on another platform and have it call a .NET service, wcf API. 您可以在另一个平台上构建一个shell,并让它调用.NET服务,即wcf API。

I'd question the security and integrity of any 3rd party hacks that try to bypass the need for .NET runtime. 我质疑任何试图绕过.NET运行时需求的第三方黑客的安全性和完整性。 Especially if you plan to execute said product on a client's machine. 特别是如果您计划在客户的机器上执行所述产品。

You may use so called ".NET Framework client profile" - reduced set of assemblies that may be deployed through ClickOnce installation. 您可以使用所谓的“.NET Framework客户端配置文件” - 可以通过ClickOnce安装部署的减少的程序集集。 Anyway installation is required. 无论如何安装是必需的。

You can use VMware ThinApp. 您可以使用VMware ThinApp。 I used it a few years ago for a .Net application. 几年前我用它作为.Net应用程序。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 .NET Framework 4桌面应用程序[C#]是否将运行Windows 8、8.1和10 - Will .NET Framework 4 desktop application [C#] run Windows 8, 8.1 and 10 没有.net框架,无法从WINDOWS XP中的Mono C#编译器运行可执行文件 - Cannot run an executable from Mono C# compiler in WINDOWS XP without .net framework 是否可以直接将Crystal报表保存为pdf格式,而无需从C#Windows Form应用程序在客户端PC中安装Crystal报表? - Is it possible to directly save crystal report to pdf format without installing crystal report in client pc from C# windows form application? 如何授予SQL Server 2008数据库从C#Windows应用程序中的客户端系统插入数据的权限? - How to give the permissions to sql server 2008 database to insert the data from client system in c# windows application? 运行.net应用程序而不安装.net客户端配置文件? - Run a .net application without installing .net client profile? .net framework 4.0应用程序从USB驱动器运行 - .net framework 4.0 application run from USB drive 在另一个系统上安装带有数据库的 C# Windows 窗体应用程序 - Installing C# Windows Form Application with Database on another system 如何创建一个 windows 应用程序,该应用程序应该在.Net C# 中以管理员权限运行,而不会一次又一次地提示 UAC? - How can I create a windows application that should run with admin rights in .Net C# without prompting UAC again and again? 如何使用 USB 电缆 C#.net 将文件从 Windows 表格申请传输到 Xamarin Forms - How to transfer the file from Windows Form Application to Xamarin Forms using USB cable C#.net 如何在 Windows 启动时运行 C# 应用程序? - How to run a C# application at Windows startup?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM