Edit avast4\setup\setup.ini and add this section:
[BufferLog]
Enable=1
Still with both Program and Database set to manual, restart Windows, and when the red popup displays, send me file SetupDbg.log.
After doing this, you can set the value to Enable=0 (logs will be written to setup.log again)