无法安装Windows 7小工具

bra*_*les 2 windows-desktop-gadgets windows-7

我正在为Windows 7开发一个非常简单的小工具.我创建了一个index.html文件和一个gadget.xml文件,将它们压缩为zip,将扩展名更改为小工具.当我双击.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>
Run Code Online (Sandbox Code Playgroud)

Nee*_*raj 5

您需要创建一个直接包含所有文件的.zip.

你可能做的是,将index.html和gadget.xml放在一个文件夹中,压缩文件夹.

真正需要做的是,选择index.html,gadget.xml和其他文件和文件夹,并制作一个.zip.

这是我遇到的问题,这样做解决了这个问题.

请检查一下是否有效.

问候