Hello, I have installed one of these in a surface-mounted box at home. However, my first-generation switch was not designed for installation in the surface-mounted frame. At that time I put a dab of glue in each corner. It has held for years now.
I don't know if the switches sold today come with an adapter.