Depending on what you are trying to attach, you would be surprised by how well pure silicone works.
We use it to secure plywood substrate to solid surface countertops. This allows them to be screwed to the cabinets from below, because you cannot screw directly into it. The slight flexibility allows the solid surface material to expand/contract with temperature changes, yet remain fastened.
Granite and quartz tops are stuck down directly with silicone, no screws at all, but they don't move.