How to install a gadget

I'm trying to pack a gadget into a product installation. After copy my gadget to programfiles/windows sidebar/shared gadgets/ , users can see the gadget in the gadgets panel, but how can i add my gadget to the sidebar automaticly? Modify settings.ini?
[252 byte] By [JohnHax] at [2008-2-7]
# 1
You can't auto add it to the Sidebar. MS would prefer the users to do that.

However, a while back I wrote an article on the subject and compiled an EXE to do it, as this functionality would be necessary if you were deploying Gadgets centrally through MSI's etc.

JonathanAbbott at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 2
Your exe doesn't work on my computer (Vista Ultimate RTM simplified chinese version)... Just like Stanimir Stoyanov said. If it could run, a security dialog will popup, is it? Is there anyway to install a gadget silently?
JohnHax at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 3
I expect the window title is different. You'll have to change the AutoIT script to cater for multiple languages and recompile it.

Having said that, I've not tried in on RTM.

JonathanAbbott at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...