The problem seems to be deeper than the ini file Jus.
I just had a look at mine, which was so complex it prompted me to uninstall a load of things I'd tried once and abandoned, but were still available to add.
I left just the 7 I use, dragged them into the right place, and looked at the ini file again, and everything had changed, so it seems that the storing of the information gets recorded. The problem seems to be that x64 sidebar doesn't read and act upon that info at boot, just positions the gadgets itself and rewrites the ini.
Mine, btw looks considerably more complex than yours. No simple 1 to 7 numbering
[Root]
SettingsVersion="00.00.00.01"
SidebarShowState="Imploded"
SidebarDockedPartsOrder="0x1f,0x1e,0x1d,0x20,0x3,0x1c,0x17,"
Section0="3"
SidebarAutoStart="true"
SidebarDockedPartsPage1="7"
OneTimeRemoveGadgetMessageShown="true"
Section1="6"
PickerPosX="707"
PickerPosY="437"
SidebarDockSide="2"
SidebarAlwaysOnTop="false"
SidebarDockMonitor="0"
OneTimeHideMessageShown="true"
Section2="8"
Section3="9"
Section4="16"
Section5="21"
Section6="23"
OneTimeCloseLastDockedMessageShown="true"
PickerDefaultPackageSkipList="Stocks.Gadget,Contacts.Gadget,CPU.Gadget,RSSFeeds.Gadget,PicturePuzzle.Gadget,Weather.Gadget,Currency.Gadget,Clock.Gadget,SlideShow.Gadget,"
Section7="28"
Section8="29"
Section9="30"
Section10="31"
Section11="32"
[Section 3]
PrivateSetting_GadgetName="C:%5CProgram%20Files%5CWindows%20Sidebar%5CGadgets%5CNotes.Gadget"
PrivateSetting_Enabled="true"
PrivateSetting_SidebarDockedState="Docked"
0="Set%20up%20multi-generation%20backup"
NoteCount="9"
SettingsExist="True"
NoteState="8"
ColorSaved="yellow"
FontSaved="Segoe%20UI"
SizeDockedSaved="12"
SizeUndockedSaved="12"
PrivateSetting_GadgetTopmost="false"
1="52.29%20%2052.22%20%2052.37%0D%0A51.30%20%2051.48%20%2051.29%0D%0A%0D%0A"
2="Harepath%20Cottage%0D%0ASU225(60)606(88)%0D%0AW%201%BA%2040'%2039%22%20%0D%0AN51%BA%2020'%2041%22"
3="Marshalsea%0D%0APoirrot%0D%0ADome"
4="RFFTV-J6K7W-MHBQJ-XYMMJ-Q8DCH%0D%0AW7%20key"
5="TRR36,PDTHB,9XBHC,PPYQK,GBPKQ%0D%0ATHIS%20KEY%20IS%20UNIVERSAL%20KEY"
6="update%20income%26tax.123"
7="Windows%207%20RC%2064-bit.%0D%0AProduct%20key:%20MVYTY-QP8R7-6G6WG-87MGT-CRH2P%0D%0A%0D%0Aor%206JQ32-Y9CGY-3Y986-HDQKT-BPFPG%0D%0A%0D%0A"
8="Pico%20+%0D%0ARMA%205146"
[Hashes]
C:\Program Files\Windows Sidebar\Gadgets\Calendar.Gadget="%7BAF1A8B73-AFFC-B5ED-E7E2-EAF1024D0780%7D"
C:\Program Files\Windows Sidebar\Gadgets\Notes.Gadget="%7B331A1952-3CAF-F745-6F51-EBBFC27AFD4C%7D"
C:\Users\Terry\AppData\Local\Microsoft\Windows Sidebar\Gadgets\Moon Phase II.Gadget="%7B46A5DF3A-BF18-6543-EE50-3F5854F95724%7D"
C:\Users\Terry\AppData\Local\Microsoft\Windows Sidebar\Gadgets\Euro Lightning.Gadget="%7B1A2A807A-1DB5-79EC-22C3-5DAB94793143%7D"
C:\Users\Terry\AppData\Local\Microsoft\Windows Sidebar\Gadgets\DigitalDutchClock.gadget="%7B1C2BECA9-25FA-9470-99DD-E026347A640C%7D"
C:\Users\Terry\AppData\Local\Microsoft\Windows Sidebar\Gadgets\ClipboardManager.gadget="%7B1AD7CE0F-7409-6F4C-96C4-EA93553FDC95%7D"
C:\Users\Terry\AppData\Local\Microsoft\Windows Sidebar\Gadgets\BBCRadio.gadget="%7BB7257667-3D7C-69BE-6632-0DBC5546AE88%7D"
[Section 6]
PrivateSetting_GadgetName="C:%5CUsers%5CTerry%5CAppData%5CLocal%5CTemp%5Cmetoffice.gadget.~0000"
PrivateSetting_Enabled="true"
[Section 8]
PrivateSetting_GadgetName="C:%5CUsers%5CTerry%5CAppData%5CLocal%5CTemp%5CMoon%20Phase%20II.Gadget.~0000"
PrivateSetting_Enabled="true"
[Section 9]
PrivateSetting_GadgetName="C:%5CUsers%5CTerry%5CAppData%5CLocal%5CTemp%5CMoon%20Phase%20II.Gadget.~0001"
PrivateSetting_Enabled="true"
[Section 16]
PrivateSetting_GadgetName="C:%5CUsers%5CTerry%5CAppData%5CLocal%5CTemp%5CMoon%20Phase%20II.Gadget.~0002"
PrivateSetting_Enabled="true"
[Section 21]
PrivateSetting_GadgetName="C:%5CUsers%5CTerry%5CAppData%5CLocal%5CTemp%5CAlarmClock.gadget.~0001"
PrivateSetting_Enabled="true"
[Section 23]
PrivateSetting_GadgetName="C:%5CUsers%5CTerry%5CAppData%5CLocal%5CMicrosoft%5CWindows%20Sidebar%5CGadgets%5CClipboardManager.gadget"
PrivateSetting_Enabled="true"
settingsSaved="True"
backgroundFilesCount="88"
backgroundImageIndex="68"
historyCapacity="999"
charsPerItem="99"
fontSize="7"
fontColor="%23222222"
privacyMode="True"
clearOnShutdown="False"
versionIgnored="0.0.0.0"
PrivateSetting_GadgetTopmost="false"
PrivateSetting_SidebarDockedState="Docked"
[Section 28]
PrivateSetting_GadgetName="C:%5CUsers%5CTerry%5CAppData%5CLocal%5CMicrosoft%5CWindows%20Sidebar%5CGadgets%5CBBCRadio.gadget"
PrivateSetting_Enabled="true"
PrivateSetting_GadgetTopmost="false"
PrivateSetting_SidebarDockedState="Docked"
[Section 29]
PrivateSetting_GadgetName="C:%5CUsers%5CTerry%5CAppData%5CLocal%5CMicrosoft%5CWindows%20Sidebar%5CGadgets%5CMoon%20Phase%20II.Gadget"
PrivateSetting_Enabled="true"
PrivateSetting_GadgetTopmost="false"
PrivateSetting_SidebarDockedState="Docked"
[Section 30]
PrivateSetting_GadgetName="C:%5CProgram%20Files%5CWindows%20Sidebar%5CGadgets%5CCalendar.Gadget"
PrivateSetting_Enabled="true"
dockedCalendarView="DAY_DOCKED"
dockedCalendarDivType="dow"
unDockedCalendarView="MONTH_UNDOCKED"
PrivateSetting_GadgetTopmost="false"
PrivateSetting_SidebarDockedState="Docked"
[Section 31]
PrivateSetting_GadgetName="C:%5CUsers%5CTerry%5CAppData%5CLocal%5CMicrosoft%5CWindows%20Sidebar%5CGadgets%5CDigitalDutchClock.gadget"
PrivateSetting_Enabled="true"
SettingsExist="True"
clockName=
themeID="1"
timeZoneIndex="-1"
showDay="True"
showDate="True"
showDigital="False"
secondsEnabled="True"
secondsEnabledDigital="False"
show24="False"
PrivateSetting_GadgetTopmost="false"
PrivateSetting_SidebarDockedState="Docked"
[Section 32]
PrivateSetting_GadgetName="C:%5CUsers%5CTerry%5CAppData%5CLocal%5CMicrosoft%5CWindows%20Sidebar%5CGadgets%5CEuro%20Lightning.Gadget"
PrivateSetting_Enabled="true"
PrivateSetting_GadgetTopmost="false"
PrivateSetting_SidebarDockedState="Docked"