我正在为Windows 7开发一个非常简单的小工具。我创建了index.html文件和gadget.xml文件,将它们压缩为zip,并将扩展名更改为gadget。
当我双击.gadget文件时,会出现一个窗口,告诉我是否确定要安装该小工具,因为它来自不受信任的发布者。我单击“安装”,一切似乎都很好。
但是,尚未安装该小工具。
我查看了事件查看器,但未发现任何结果,它只是默默地失败了。
有人知道我可能做错了吗?
这是gadget.xml文件:

<?xml version="1.0" encoding="utf-8" ?>
<gadget>
<name>Elecciones 2011</name>
<namespace>gnuine.com</namespace>
<version>1.0.0.0</version>
<author name="whatever">
    <info url="hiddenforpublicpublish" />
</author>
<copyright>2011</copyright>
<description>Description</description>
<hosts>
    <host name="sidebar">
        <base type="HTML" apiVersion="1.0.0" src="index.html" />
        <platform minPlatformVersion="1.0" />
        <permissions>Full</permissions>
    </host>
</hosts>
</gadget>

最佳答案

您需要创建一个.zip,其中直接包含所有文件。

您可能要做的是将index.html和gadget.xml放在文件夹中,然后将文件夹压缩。

真正需要做的是,选择index.html,gadget.xml和其他文件和文件夹,并从中创建一个.zip。

这就是我所面临的问题,而这样做解决了这个问题。

请检查是否可行。

问候

关于windows-7 - 无法安装Windows 7小工具,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/5661625/

10-11 22:08