It varies, and usually depends on what the tie-in medium is. If it's from a movie or t.v. series or comic series, then cast, setting, and to some degree plot is already set and the books are essentially a spin-off. Authors can, though, propose ideas for premises, bring in other characters they create, explore side stories, etc. These usually have to be approved -- in Star Wars' case, by Lucas himself, which is unusual, but if approved, the author has a fair amount of leeway within the plan to develop things. The franchise operators may also have a specific idea they want to do, and ask a writer to develop it. So it's sort of like hiring a screenwriter to come in, but it's a novel instead.
In the game franchises, you might have one of three set-ups: shared setting, straight tie-in or give and take tie-in. A shared setting is just a setting, the basics of which are agreed on and set. The writer then creates characters, plots, specific setting details and logistics for the part of the setting being used, and there's not a great deal of oversight from the franchise owners. This sort of tie-in is not particularly different from an original, non-tie-in series.
A straight tie-in means that there is a game that's been specifically designed, including a plot premise or at least a plot goal for the game. The writer then has to write a story that essentially follows the game, but can create specific characters to do this and decide on what details and action sequences to use. For instance, if you've got a game where players search for the Lost Sceptre of the Teddy Bears, you've got to have the Lost Sceptre in the novel and your characters have to go into the Dark City of Whatever to get it, like in the game, but who those characters will be comes from the author and whether they get attacked by a giant heffalump or some other beastie is the author's choice, and so on. This is the most work-for-hire scenario, but there's usually a lot of latitude.
A give and take tie-in is when the game designers have a setting and a loose premise in mind, but let the author invent characters, plot and other details that are then incorporated into the game design. The game makers can actually use some of the text the author creates as part of the game, and essentially the author is writing the game by writing the novel. I don't know how common this one is now, but it happened a fair amount in the early days.
I'm guessing that Paul's series is a shared setting one from what he has said, but I don't know for sure. All of this, for me, makes the prejudice against tie-in novels artificial and unnecessary. We don't freak out when a screenwriter is brought in to come up with ideas for a sequel movie, especially as that writer may come up with something even better than the first outing. We don't object to someone taking Shakespeare's Othello and turning it into a story about a black basketball player. We don't think it's unoriginal when an author creates a world and then the author's writer pals come up with stories for it, such as in Thieves World, or when an author invents a story from a premise another author or an editor thought up. Starting completely from scratch can be fun, but bouncing off of someone else's ideas can be pretty interesting too.
Big names were also brought in to write Star Trek novels. Wizards, and TSR before it, tended to go the let's find new talent route, but I think the success of pairing Star Wars with fairly big names has them interested in trying it out for some series. In addition to Hamilton, Wizards has P.N. Elrod and Tanya Huff writing books for this series, both of whom are very well known fantasy writers with established followings.