silverlight 4 tools for vs2010无法在vs2010 SP1上安装的解决办法

本文介绍了解决因卸载VS2013RC导致的Silverlight4开发环境问题的方法。通过修改安装包中的ParameterInfo.xml文件,移除特定节点,使用户能够成功安装Silverlight4工具并恢复项目开发。

环境:英文版vs2010 sp1 + vs2013 RC 90天体验版

 

原来可以正常做silverilght 4 项目开发,今天因为vs2013 RC过了90天体验期,卸载时顺带把Silverlihgt相关的东东干掉了,然后再用vs2010打开原来的silverlight项目就杯具了

 

到网上下载silverlight 4 tools for vs2010(中文版),准备重新安装silveright 4 tools,结果弹出一个大大的警告框

 

解决办法:

将Silverlight4_Tools.exe用解压软件解到某个目录,用记事本打开ParameterInfo.xml这个文件,找到下面这个节点:

 1 <Blockers>
 2     <StopBlockers>
 3       <BlockIf DisplayText="您必须以管理员身份登录,安装才能继续。">
 4         <Not>
 5           <Exists>
 6             <IsAdministrator />
 7           </Exists>
 8         </Not>
 9       </BlockIf>
10       <BlockIf DisplayText="必须先安装与 Silverlight Tools 4 语言版本相一致的 Visual Studio 2010、Visual Web Developer 学习版 2010 或 Visual Phone Developer 学习版 2010,Silverlight Tools 的安装才能继续。以下网址提供了其他语言版本的 Silverlight Tools: &lt;A HREF=&quot;http://go.microsoft.com/fwlink/?LinkId=177432&quot;&gt;http://go.microsoft.com/fwlink/?LinkId=177432&lt;/A&gt;。">
11         <And>
12           <And>
13             <Not>
14               <Equals LeftHandSide="10.0.40219.1" BoolWhenNonExistent="false">
15                 <RegKeyValue Location="HKLM\SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS\BuildNumber\2052" />
16               </Equals>
17             </Not>
18             <Not>
19               <Exists>
20                 <RegKey Location="HKLM\SOFTWARE\Microsoft\VisualStudio\10.0\Setup\Microsoft Visual Web Developer 2010 Express - chs" />
21               </Exists>
22             </Not>
23           </And>
24           <Not>
25             <Exists>
26               <RegKey Location="HKLM\SOFTWARE\Microsoft\VPDExpress\10.0\SplashInfo\EnvVersion" />
27             </Exists>
28           </Not>
29         </And>
30       </BlockIf>
31       <BlockIf DisplayText="必须先安装用于 Visual Studio 2010 的 Visual Web Developer 功能,安装才能继续。">
32         <And>
33           <Not>
34             <Or>
35               <And>
36                 <Exists>
37                   <RegKey Location="HKLM\SOFTWARE\Microsoft\VisualStudio\10.0\InstalledProducts\Visual Web Developer" />
38                 </Exists>
39                 <Exists>
40                   <RegKey Location="HKLM\SOFTWARE\Microsoft\VisualStudio\10.0\Packages\{349C5850-65DF-11DA-9384-00065B846F21}" />
41                 </Exists>
42               </And>
43               <Exists>
44                 <RegKey Location="HKLM\Software\Microsoft\VWDExpress\10.0\Packages\{349C5850-65DF-11DA-9384-00065B846F21}" />
45               </Exists>
46             </Or>
47           </Not>
48           <Not>
49             <Exists>
50               <RegKey Location="HKLM\SOFTWARE\Microsoft\VPDExpress\10.0\SplashInfo\EnvVersion" />
51             </Exists>
52           </Not>
53         </And>
54       </BlockIf>
55     </StopBlockers>
56   </Blockers>

把这个节点全干掉,然后运行该目录下的SPInstaller.exe

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值