Windows 7 小工具安装
我创建了一个 Windows 7 小工具,当我将其复制到 %LOCALAPPDATA%\Microsoft\Windows Sidebar\ 时,该小工具可以正常工作,
但是当我将其压缩并将其重命名为 .gadget,然后尝试安装时,会出现安装确认屏幕,但小工具没有出现安装。
您可以从以下位置下载我的代码: http://reliablesoftwares.com/100thmilaadcountdown.zip (它是一个简单的倒计时)
I have created a windows 7 gadget which works properly when i copy it to %LOCALAPPDATA%\Microsoft\Windows Sidebar\
but when i zip it and rename it to .gadget and then try to install .. install confirmation screens comes but gadget doesnt get install.
You can download my code from: http://reliablesoftwares.com/100thmilaadcountdown.zip (its a simple countdown)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也遇到了同样的问题,我想我发现我做错了什么。我将小工具压缩到一个带有小工具名称的文件夹中,而不仅仅是小工具文件。
我猜当您打包小工具时,您正在从小工具文件夹创建存档。相反,您需要打开该文件夹,并从文件本身创建存档。换句话说,文件(gadget.xml 等)需要位于存档的顶层。
这为我解决了这个问题,希望它也能解决您的问题。
I've been having the same problem, and I think found what I was doing wrong. I was zipping up the gadget in a folder with the gadget's name instead of just the gadget files.
I'm guessing that when you package your gadget, you're creating an archive from the gadget folder. Instead, you need to open the folder, and create the archive from the files themselves. In other words, the files (gadget.xml etc.) need to be in the top level of the archive.
That fixed it for me, hope it solves your problem too.