I do this using a simple batch file that kills the sidebar.exe file, copies the unpacked gadget files, and reloads the sidebar.exe file. This method also saves settings between gadget updates.
This is a batch file. You will need to change src and dst accordingly. You may need to run it from an elevated command prompt if you have not disabled UAC.
@setlocal @echo off :: Kill the current sidebar process taskkill /f /im sidebar.exe :: Update files set src="%CD%\source" set dst="%USERPROFILE%\appdata\local\microsoft\windows sidebar\gadgets\YourGadget.gadget" xcopy /s /y %src% %dst% :: Relaunch sidebar start "" "%ProgramFiles%\Windows Sidebar\sidebar.exe" @endlocal
source share