If,%SourceArch%,Equal,x86,Begin
RegWrite,HKLM,0x1,"Tmp_Software\Classes\CLSID\{865e5e76-ad83-4dca-a109-50dc2113ce9b}\InProcServer32","","X:\Program Files\StartIsBack\StartIsBack32.dll"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\CLSID\{99E2B362-3E4E-4255-9B29-41A7F40777BA}\InProcServer32","","X:\Program Files\StartIsBack\StartIsBack32.dll"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\CLSID\{99E2B362-3E4E-4255-9B29-41A7F40777BB}\InProcServer32","","X:\Program Files\StartIsBack\StartIsBack32.dll"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\CLSID\{a2a9545d-a0c2-42b4-9708-a0b2badd77c9}\InprocServer32","","X:\Program Files\StartIsBack\StartIsBack32.dll"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\CLSID\{AD1405D2-30CF-4877-8468-1EE1C52C759F}\InProcServer32","","X:\Program Files\StartIsBack\StartIsBack32.dll"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\CLSID\{c71c41f1-ddad-42dc-a8fc-f5bfc61df958}\InProcServer32","","X:\Program Files\StartIsBack\StartIsBack32.dll"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\CLSID\{E5C31EC8-C5E6-4E07-957E-944DB4AAD85E}\InProcServer32","","X:\Program Files\StartIsBack\StartIsBack32.dll"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\CLSID\{FCEA18FF-BC55-4E63-94D7-1B2EFBFE706F}","LocalizedString","@X:\Program Files\StartIsBack\StartIsBack32.dll,-510"
End
// Default StartIsBack Config
RegImport,%ProjectTemp%\StartIsBack-RegDefault.reg
RegImport,%ProjectTemp%\StartIsBack-RegSoftware.reg
RegWrite,HKLM,0x4,"Tmp_Default\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell","TabletMode",0
Checklist
Report
Describe what is happening
StartIsBack++ doesn't get set up as default start menu in x86 build (clicking start button does nothing), because the x86 part of the script that sets up the registry gets immediately overwritten by the .reg file included in the script that sets up the x64 environment. To fix one needs to swap the order of these two script functions.
To Reproduce
Build using x86 source and include StartIsBack++
Expected behavior
Start Menu Works after loading the created image.
Screenshots/Logs
These two parts of the StartIsBack building script need to be swapped, I'm creating a pull request with a fix. I believe the problem is self evident from the code.