如何在Visual Studio 2015 C#中制作便携式(未添加到“程序和功能”).EXE文件? [英] How to make a portable (not added to "programs and features") .EXE file in visual studio 2015 C#?

查看:88
本文介绍了如何在Visual Studio 2015 C#中制作便携式(未添加到“程序和功能”).EXE文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

exe文件正在运行并立即打开,无需在Windows中请求安装。



我所知道的是按Visual Studio 2015,Build-> ;发布,然后有setup.exe和一个文件夹,通过安装EXE它将自己添加到Windows中的程序和功能,我想在没有它要求安装的情况下运行它,并且没有将它自己添加到Windows中的程序和功能 。



我尝试过:



没什么...... ...................

Exe file being run and opened immediately without it needing to ask for installation in Windows.

All I know is to press in Visual Studio 2015, Build->Publish, and then have setup.exe and a folder, by installing that EXE it adds itself to Programs and Features in Windows, I want to run it without it asking for installation and without it adding itself to "Programs and Features" in Windows.

What I have tried:

Nothing.......................

推荐答案

从项目bin中复制.EXE和.DLL \\发布文件夹,跳过提到vshost的东西。



把这些东西放在目标机器上的一个文件夹中,这通常很好。当然,目标机器必须安装您编写应用程序的.NET Framework版本。
You copy the .EXE's and .DLL's from in your projects bin\Release folder, skipping the stuff that mentions "vshost".

Put that stuff in a folder on the target machine and it's usually good to go. Of course, the target machine will have to have the version of the .NET Framework installed that you coded your app against.


这篇关于如何在Visual Studio 2015 C#中制作便携式(未添加到“程序和功能”).EXE文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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