IIS + Piwik javascript

Is there a way to automatically add piwik javascript to the end of webpages in IIS like there is with apache?

I can only speak for the IIS 6. See here:
http://www.owenwebs.com/2009/07/16/iis-6-adding-footers-to-web-pages/
that may be what you want.