如何使用.NET 3.5 SP1引导程序进行通信 [英] How to communicate with .NET 3.5 SP1 bootstrapper

查看:144
本文介绍了如何使用.NET 3.5 SP1引导程序进行通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个自定义Windows安装程序包对我的.NET 3.5 SP1 WPF应用程序。我想它来检测一下.NET框架版本(如果有的话)安装在客户端计算机上,然后自动从微软下载,如果他们没有了。

I'm building a custom Windows installer package for my .NET 3.5 SP1 WPF application. I want it to detect what version (if any) of the .NET framework is installed on the client's computer, and then automatically download it from Microsoft if they don't have it.

现在,我读过有关.NET引导程序,甚至看到它在一个的ClickOnce安装程序我做的动作。看来做正是我需要的。

Now, I've read about the .NET bootstrapper and even seen it in action in a ClickOnce installer I made. It seems to do just what I need.

现在的问题是,我不希望使用的ClickOnce。我偏爱NSIS。所以基本上我正在寻找如何与之通信或整合的引导程序以某种方式让我可以在我自己的安装程序利用它的一些文件。但我没有找到太多。

The problem is, I don't want to use ClickOnce. I'm partial to NSIS. So essentially I'm looking for some documentation on how to communicate with or integrate the bootstrapper in some way so I can leverage it inside my own installer. But I'm not finding much.

任何帮助将是很大的AP preciated。

Any help would be greatly appreciated.

谢谢, 史蒂夫

推荐答案

你想要的东西的这样的,除了当我用这个只可检测多达2正常。我在家里,但现在,当我开始工作我会后我的这个code黑客攻击,使工作达到3.5 SP1。他们改变的版本号的位置稍微

You'll want something like this, except when I've used this it only detects up to 2 properly. I'm at home now but when I get to work I'll post my hack of this code to make it work up to 3.5 SP1. They changed the location of the version number a little.

编辑:发布我的版本对引擎收录

这篇关于如何使用.NET 3.5 SP1引导程序进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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