简体   繁体   中英

C# .net 4 dependency

I have a standalone tool developed in C# Visual Studio Express 2010. My problem is that this tool will fail to start on machines having no .NET installed, and asking for .NET 4 on machines has .NET under 3.5 or lower. What I basically want to do is to install .NET 4 from my application before the main script runs. I can write a program to download it from an official webpage, also to run the installer etc. But the main problem still exists, the app won't even reach the download part as it won't run on machines... I've googled around and found that you can include dll-s etc., but I still doubt I can proceed without a proper .NET installation. So how can run dotnetfx.exe with my .NET dependent application? Your attention and ideas are much appreciated. Cs.

使用ClickOnce - 它在正确配置时处理依赖项,并且与 VS 集成/免费。

EDIT: So vs express editions don't support setup projects. Plan B: wix .

simple. your installer must not be a .net application. just write your own c++ version or use some existing application. here is a link to show you how to do silent installs of .net 4. just include the setup application with your program. I would be very surprised if some of the msi installer tools out there do not have .net installation support.

http://blogs.msdn.com/b/astebner/archive/2009/04/16/9553804.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM