How to set scriptmaps in a Web Setup Project
Van Kichline has started a series of blog posts documenting how to extend web setup projects. His first post documents how to set the ASP.NET 2.0 scriptmaps
http://blogs.msdn.com/vank/archive/2006/09/09/748290.aspx
Hope this helps,
Brad.