Including the changes to App_Browsers/compat.browser in wsp package
I am building a wsp package, which includes a web part adapter, which requires some changes to /App_Browsers/compat.browser file. Is it possible to include these changes in the package somehow? - programatically or by editing CAML or some other way?
October 7th, 2010 7:13pm

YES! You can use WSPBuilder to build your WSP package. WSPBuilder simply recreates and/or overwrites files in the Hive (12 or 14) so you just have to build the structure underneath the root i.e. for the "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\BROWSERS" location, you just add the \CONFIG\BROWSERS folder tree to the the WSPBuilder root of your project. Then add the compat.browser file and customize it for your needs. Once you run WSPBuilder, it will package it all up into the WSP for you which will then deploy the needed files at deployment time of the WSP. Start here: http://wspbuilder.codeplex.com/ I trust that answers your question... Thanks C http://www.cjvandyk.com/blog
Free Windows Admin Tool Kit Click here and download it now
October 19th, 2010 2:39pm

Thanks, but it only seems to copy the files to: c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\CONFIG\Browsers\ I also need them to be copied to: c:\Inetpub\wwwroot\wss\VirtualDirectories\81\App_Browsers\ Also - it would be best if I could just add/remove a few extra lines, rather than replace the whole file - I don't want it to be deleted once the feature is retracted.
October 26th, 2010 8:52am

Is this a good idea? Changing system files?Brian Bedard, MCTS - pioneeringsharepoint.blogspot.com - Twitter:@tigertoy
Free Windows Admin Tool Kit Click here and download it now
October 26th, 2010 9:11am

You might check out http://msdn.microsoft.com/en-us/library/ff464297.aspx . Take a look at step 12 also http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spwebapplication.iissettings.aspx
October 27th, 2010 11:35am

Thanks. That worked great.
Free Windows Admin Tool Kit Click here and download it now
November 1st, 2010 1:09pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics