phydias

Hi everybody,

I recently decided to create my own gadget. I did the tutorial of the great Gadget Academy Wink

But I have some problem with what would have been the easiest step of the creation : "packaging"

Indeed I have tried to create my zip file "myGadget.zip" (which contains : all the common file : gadget.htm, gadget.xml, settings.htm, folder js, images and css) and then to rename it into "myGadget.Gadget". But when I want to install it windows Vista return me an error "This is not a valid gadget package."

Does somebody know why I have this error and how to solve it

Thanks a lot for your help.



Re: Sidebar Gadget Development Help : Gadget Building

JimNastiq

if one of your folder js,image or css is empty you should remove it or put a fake file in it Wink



Re: Sidebar Gadget Development Help : Gadget Building

phydias

I thought it was the problem too, but it is not... Tongue Tied

I check all my folders and put images and css in each one, my js folder has the "settings.js" file inside.

Do you have an other idea





Re: Sidebar Gadget Development Help : Gadget Building

JimNastiq

check closer to your gadget.xml file it could be this!

or if you make en-EN or fr-FR folders be sure of your vista version




Re: Sidebar Gadget Development Help : Gadget Building

Andy E

I've had this a few times as a freak occurrence. Have you tried re-packaging it a few times

Check the following, too:

* Make sure you're not right-clicking the root folder and choosing "Send To -> Compressed (zipped) folder" you actually need to go into your .gadget folder and select all the files, then click "Send To -> Compressed (zipped) folder".
* Are you using third party software to build your zip ie WinRAR, WinZip, Power Archiver etc. I'm not saying that these would be causing the problem but I wouldn't rule it out either.
* As mentioned, make sure none of the folders are empty.
* Validate your XML at http://www.w3.org

I thought of some more but they've gone now. That's what working with these damn things all the time does to you!

Andy




Re: Sidebar Gadget Development Help : Gadget Building

phydias

I have found! there was indeed an error in my xml file, I certainly did while editing my work ^^

Thank you very much for your help Smile





Re: Sidebar Gadget Development Help : Gadget Building

phydias

Indeed validating my XML file is a good idea Wink