开发者

VB no install of .net

开发者 https://www.devze.com 2023-01-03 18:33 出处:网络
I h开发者_JS百科ave a vb app working now but many users have complained to me that it requires .net library installed. Is there a way to bundle it with my program without having a seperate exe?If you

I h开发者_JS百科ave a vb app working now but many users have complained to me that it requires .net library installed. Is there a way to bundle it with my program without having a seperate exe?


If you use the packaging tool which comes with the VB6 IDE (can you really call it that?), it will install all the dependencies with the app. However, I'm not sure that's the real problem here because VB6 doesn't depend on the .NET framework.


I'm assuming that you're using VB.NET (rather than just VB, as your tags suggest). In this case, no, there is no possible way to eliminate needing the .NET framework. While you can list it as a prerequisite and include it with your setup project, you cannot eliminate the dependence upon it.


Take a look at VMWare ThinApp http://en.wikipedia.org/wiki/VMware_ThinApp. It's a commercial appplication, but it's the only thing I know of that might do what you want.


I had this problem earlier, solution is

Pack all necessary .net frameworks [2.0,3.0,3.5,4.0,4.5,later], in installer exe, then program installer, to run installation of all .net frameworks.

Suggestion: each .net framework installer has switches, study and apply proper switch [like /s , /i]. This installers have un-attend installation switch too.

Then send new installer to all users and will be happy with the improvements.

Regards.


I've found that the biggest complaint with users (and biggest source of installation confusion) is having to install a separate runtime for .NET, along with the application. Especially if they have to go through 2 hours of Windows Update downloads and reboots to obtain it! Creating a setup package that includes the .NET runtime and installs this seamlessly, along with your application, should make things go much smoother for your users. Most people expect to have to install applications first before they use them anyway.

Creating a simple setup application is easy in Visual Studio. See Microsoft's guide here: http://msdn.microsoft.com/en-us/library/k3bb4tfd.aspx

There are other third-party installer programs you can use, but I'll mention here that my favorite is definitely Inno Setup, which I highly recommend. The website is here: https://jrsoftware.org/isinfo.php. You can write a simple script that will automatically install the current version of the .NET framework, if the user doesn't already have it installed.


If you're using VB.NET, then it's not possible, VB.NET is too reliant on .NET framework for everything.

However, you might want to backport your code into VB6, which does not require .NET framework.

0

精彩评论

暂无评论...
验证码 换一张
取 消