Can't install Windows 7 gadget

痴心易碎 提交于 2020-01-04 10:59:05

问题


I'm developing a very simple gadget for Windows 7. I have created an index.html file and a gadget.xml file, compressed them as a zip, changed the extension to gadget. When I double click on the .gadget file I get a window telling me if I'm sure I want to install the gadget as it comes from an untrusted publisher. I click 'Install', and everything seems to be fine. However, the gadget is not installed. I've looked at the Event Viewer and found nothing, it just silently fails. Anyone knows what I might be doing wrong? Here's the gadget.xml file:

<?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>

回答1:


You need to create a .zip which has all the files directly in it.

What you probably have done is, put index.html and gadget.xml in a folder, zipped the folder.

What really needs to be done is, select index.html, gadget.xml and other files and folder and make a .zip out of it.

This was the issue I had faced, and doing this solved the problem.

Please check if that works.

Regards




回答2:


  1. download gadget
  2. rename to rar extension from gadget extension
  3. go to C:\Program Files\Windows Sidebar\Gadgets
  4. extract all rename files with the same gadget file name like "new.gadget"
  5. move the extracted folders to that directory. (to C:\Program Files\Windows Sidebar\Gadgets)

now you are done, problem solved.




回答3:


I had issues with the version number, I thought it had to be:

x.x

not x.x.x.x



来源:https://stackoverflow.com/questions/5661625/cant-install-windows-7-gadget

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!