VB.net app without installation

独自空忆成欢 提交于 2019-12-11 00:43:56

问题


Is it possible to create a VB.Net application which users can just run without installing it first.

If not, is it possible in another .Net language.

If not, how IS it possible :)

PS: The application only has to run under Windows (>= XP).


回答1:


If they have the .NET Framework installed (the version of it that you developed it), they only need the .exe. You can find the .exe file in the bin directory of your projects folder in your Visual Studio workspace.

If they do not have the framework installed, you'll need to produce an installation for them. It's extremely easy with Visual Studio by just creating a setup project in the same solution as your code.




回答2:


As long as the user has the .net runtime installed, and your exe has any needed resources in the same folder (dll's, images, ect) theres no problem with that.

If you mean without installing the .net framework though, that won't be possible.




回答3:


just build the program, and go into the (assuming the project name is app1) app1/app1/bin/debug/ dir. there should be a file there called app1.exe. this file is the compiled .exe from you project. any other computer will be able to run this without doing any installation (provided they have the .NET framework installed (it comes standard on any computer with an os > WinXP))

EDIT: If you were building with debug configuration, it would be app1/app1/bin/debug/, but if you were building with release configuration (which would probably be a better idea if you are distributing) the path would be app1/app1/bin/release/




回答4:


If you mean running it without the .NET Framework, it used to be possible, but apparently the company's website is no longer in English so I have no idea what's happened to it.




回答5:


EDIT: If you were building with debug configuration, it would be app1/app1/bin/debug/, but if you were building with release configuration (which would probably be a better idea if you are distributing) the path would be app1/app1/bin/release/

I am developer and have no administration rights to live(production) network.

I had to find away to deploy an app without installation... and my app is self updating this cause other problems too....

The production network Computer check/monitors the file versions etc, so updating in the program files can not be done, where a MSI has been used for deployment.

Using this above I am able to copy and Run the App from the User Profile (where the user has full rights).



来源:https://stackoverflow.com/questions/4630779/vb-net-app-without-installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!