Gadgets download
Yesturday, I noticed about interesting problem – how to make download gadget. Seemed stupid? No. Try to upload your gadget to any web server (it might be even apache). While you’ll try to download it you’ll get following in IE and FF. What’s the hell? Why it’s ZIP??? I uploaded .Gadget!
You see .ZIP extention just because .Gadget is really .ZIP, so “smart” IE knows to “translate” extention in order to prevent fraud. Very nice, but I want do download and install gadget. As like as I can do in in http://gallery.live.com
How to configure my server to do it. Simple answer is right MIME type. It’s application and it’s zipped, so we can use application/octet-stream, application/x-compressed or even application/x-msdownload. Let’s try. Just register .gadget type with one of those. In first case you’ll get octet stream
Obviously. And this looks like that
Bad one. The next x-compressed will return us to previouse state with .ZIP renaming. Let’s see what will be with x-msdownload.
You able to download gadget as requested, but you can not install it (Open->Run) from the web (like in Live.Gallery)
So such thing is not suitable for us. After some digs of my friends from Redmond (from Live team – they are only 3
) I found it. The right MIME type for Vista SideBar Gadget is application/x-windows-gadget. Register .gadget extention with application/x-windows-gadget MIME type and you’ll able to provide your visitors Live.Gallery like installation option for gadgets
Yossi, do it here for us as well
Have a nice gadget
January 3rd, 2007 · Comments (11)
11 Responses to “Gadgets download”
Leave a Reply
Discover other tags
My tools
- .NET Framework Detector
- Duplicate images finder
- Exchange Security Policy for Windows Mobile Devices Fix
- Gas Price Windows Vista SideBar gadget
- Israel Traffic Information Windows Vista SideBar gadget
- Localization fix for SAP ES Explorer for Visual Studio
- LocTester
- RTL and LTR in Windows Live Writer
- Silverlight controls library
- Snipping tool integration plugin for WLW
- USB FM receiver library
- Vista Battery Saver
- WebCam control for WPF
- Windows Live SkyDrive attachment for Windows Live Writer
- Wireless Migrator
- WPF Virtual Keyboard




January 1st, 2009 at 12:04 am
i’ve gadget files but don’t know how to open them. thanks to u now i can open them
January 1st, 2009 at 12:04 am
lets see what’s the gadget is
January 1st, 2009 at 12:04 am
How do you set the MIME-type?
January 1st, 2009 at 12:04 am
It will never installs automatically. It’s always asks user to approve an installation be design.
January 1st, 2009 at 12:04 am
Now it is downloading as a gadget file but it isn’t automatically installing.
January 1st, 2009 at 12:04 am
I registered
.gadget
application/x-windows-gadget
and it still tries to download .zip
January 1st, 2009 at 12:04 am
Thank you very much!!
You are so wonderful!!
January 1st, 2009 at 12:04 am
You’re a life saver! Worked perfect! THANK YOU!
January 1st, 2009 at 12:04 am
You are welcome
January 1st, 2009 at 12:04 am
Thanks for the info. I searched the web for this and I found only this article. I added the mime type to my apache server and it works like a charm.
October 24th, 2010 at 9:52 am
I agree with most of your points, however a few need to be discussed further, I will hold a small talk with my buddies and maybe I will ask you some advice shortly.
- Henry