Check local building codes, and get any required permits for constructing deck railings. Codes vary, but few municipalities will be without a required height for a rail at the edge of decking, as well as any spacing requirements between posts.
Remove ceiling panels from under the roof, exposing the rafters. Place the roof post bracket at each designated spot along the rafters and mark the mounting holes with a pencil.
Drill up through the rafter to the roof above at the marked spots, creating holes for pass-through nuts and bolts.
Go to the roof. Position the post in place with the bracket aligned to the holes. Line the bolt with epoxy paste, then thread the bolt through the holes.
Tighten each bolts from underneath with a nut, securing each one in place with a wrench.
Repeat for every post required to install the roof railing.
Replace the ceiling panels when the installation is complete.