I have packed my gadget files in a zip file. I then changed the name to *.gadget. The icon changed to a gadget icon and double-clicking it installs it.
I then uploaded the file to my webserver and it is there are a gadget file.
I then linked to it as a gadget file.
When I click that link it downloads a .zip file and asks where to save it rather than downloading as a gadget file and installing.
What am i doing wrong

file is .gadget but IE downloads as .zip
El Gaseron
Bingo Boy
They said they couldn't unzip my "zip" file that was actually a cab. They will not accept a cab file even though it is a valid file. You MUST upload a zip file. I built the cab and renamed it zip thinking it would be a good work around, nothing to do with being sneaky.
I'll try WinZip next and hope it works. I'll try adding files one at a time.
PrasannaVenkatesh
I'm still getting a ~00019 at the end of my folder. And I am NOT zipping a gadget folder, I am zipping all the files in the archive.
Also, I've noticed that when it does this it won't write any files after the letter g. Meaning that all filenames that start with an "I-Z" aren't unzipped into the folder. So, I thought that maybe I had a corrupt file in the Gs or Hs. (ie. gadget.xml)
I remade the file structure to use an en-US folder and the install worked without alerting me of an invalid gadget file BUT STILL appended a ~0019 at the end of the folder name. If I delete that, the gadget works.
My gadget file:
foofoofoo.gadget
[----------images
[----------- foo1.jpg
[----------- foo2.jpg
[----------- foo3.jpg
[----------foo.css
[----------foo.html
[----------gadget.xml
[----------foo2.html
[----------foo3.html
[----------icon.png
[----------logo.png
Once I figure this out, I'm going to write a gadget builder gadget that packs the .gadget file. This is crazy doing it by hand and guessing.
LouArnold
I get the install prompt, however it does the same thing. It creates the filename.gadget.~0004 in the proper directory and one folder deeper creates the filename.gadget folder. I had WinRar install and thought this was the problem. Perhaps it still is somehow.
I've uninstalled WinRar, deleted the Registry key at HKEY_CLASSES_ROOT\.zip and then imported a clean version from another machine. Still the problem persists.
The only other time it got close was when I created the filename.gadget on a computer that never had WinRar installed. This would create the proper folder in the proper location, but it wasn't added to the gadget add panel.
There's something here that needs to be resolved. If anyone has any other ideas, please let me know.
And a word to Sidebar Gadget developers, perhaps installing WinRar isn't a good idea (or at least not associating, ever, with .zip files).
zkhan
If you're going to name the file as ".zip" when you upload it, then yes, it absolutely must be a zip file. However you don't have to upload a .zip. If you're submitting a Sidebar gadget, you can submit it as "foo.gadget" directly (I know because I've done it), in which case you should be just fine submitting as a CAB.
Raul Rodriguez
GlitchEnzo
Mime types.... seems obvious now.
.gadget
application/x-windows-gadget
However, it still doesn't automatically install, but it does download as a gadget now.
Any idea on getting an automatic install
Docpro777
Alistair Leslie-Hughes
EsteemDE
The problem was with me! I was zipping my .gadget folder instead of creating a new .zip archive and adding the files and folders to it.
Klaus Even Enevoldsen DK
Here is what I think is the final fix. I was finally able to upload a valid gadget to Microsoft. (Still pending approval).
1. Create the widget
2. Compress the widget as a foo.cab file
3. Rename foo.cab to foo.zip
4. Microsoft will rename foo.zip to foo.gadget
That should do it for a valid file. I'll let you know if Microsoft rejects it again
Tom_Liu
I would click OPEN and nothing would happen. I restarted and now it works. Although it adds a ".~0001" after the file and prompts with a "Not a valid gadget file."
Farhan H Soomro
Are you zipping with the foo.gadget folder at the root of your archive You shouldn't be doing that.
Jeffrey Harmon
I just tried it with WinZip and added files 1 at a time.
I got the same error, not a valid gadget package.
CAB works, ZIP doesn't