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

时间:2022-04-24
本文章向大家介绍silverlight 4 tools for vs2010无法在vs2010 SP1上安装的解决办法,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

环境:英文版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="HKLMSOFTWAREMicrosoftVisualStudio10.0SetupVSBuildNumber2052" />
16               </Equals>
17             </Not>
18             <Not>
19               <Exists>
20                 <RegKey Location="HKLMSOFTWAREMicrosoftVisualStudio10.0SetupMicrosoft Visual Web Developer 2010 Express - chs" />
21               </Exists>
22             </Not>
23           </And>
24           <Not>
25             <Exists>
26               <RegKey Location="HKLMSOFTWAREMicrosoftVPDExpress10.0SplashInfoEnvVersion" />
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="HKLMSOFTWAREMicrosoftVisualStudio10.0InstalledProductsVisual Web Developer" />
38                 </Exists>
39                 <Exists>
40                   <RegKey Location="HKLMSOFTWAREMicrosoftVisualStudio10.0Packages{349C5850-65DF-11DA-9384-00065B846F21}" />
41                 </Exists>
42               </And>
43               <Exists>
44                 <RegKey Location="HKLMSoftwareMicrosoftVWDExpress10.0Packages{349C5850-65DF-11DA-9384-00065B846F21}" />
45               </Exists>
46             </Or>
47           </Not>
48           <Not>
49             <Exists>
50               <RegKey Location="HKLMSOFTWAREMicrosoftVPDExpress10.0SplashInfoEnvVersion" />
51             </Exists>
52           </Not>
53         </And>
54       </BlockIf>
55     </StopBlockers>
56   </Blockers>

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