yep, the glue can be a pain if not applied evenly... and if you want to remove it it makes a mess-
for walls I used a stapler (Arrow T-50, etc) with 5/8" long staples
for ceiling, I glued the foam to 1/4" pegboard (it's cheap) and then used long drywall screws into shields (this also allows you to leave an air space behind them)... though it does put holes on the ceiling