SurfaceRuntime2.0 bootstrapper manifest bug
Got it!
It seems that the Package.XML content has some issue.
Open the bootstrapper folder:
This is my file path, you can ref it, and find it in your computer.
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\SurfaceRuntime2.0\en\Package.xml
Then find the SurfaceToolkitHomeSite node, and replace this string to SurfaceHomeSite.
(You need Administrator permission to modify this file)
SurfaceToolkitHomeSite --> SurfaceHomeSite
This is said that we need keep the node name is the same as it used in the Product.XML file.
And then open your Visual Studio, and re-add this prerequisite component to publish your application.
保证在Product.XML文件中使用的节点与Package.XML中的节点对应。
经过我的检验,此SurfaceRuntime2.0的bootstrapper包存在问题,homesite节点没有对应,导致了文件在下载的时候没有地址可寻,所以恐怕在Microsoft出补丁之前开发者都需要自己对此文件进行修改了。
这个是我机器上的文件路径,大家的这个文件路径应该是相同的,如果你没有可以更改过。
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\SurfaceRuntime2.0\en\Package.xml
修改节点:
(需要持有Administrator管理员权限才能修改此文件。)
SurfaceToolkitHomeSite –> SurfaceHomeSite
Edit:
Get the Public Key of the file (C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\SurfaceRuntime2.0\SurfaceRuntime.msi).
We can use the "Bootstrapper Manifest Generator" to get it.
(New Project > Add File>Package Manifest>Add Install File>ReportViewer.exe > Go to the "Security" Tab to get the "Public Key").
Copy the correct Public Key into the 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\SurfaceRuntime2.0\product.xml' file .