Run STSADM.EXE -o copyappbincontent after installation or upgrade

Feb 27, 2009 at 3:54 AM
Some SharePoint feature need to copy some file to the virtual path of the web application.(for example: copy a Resource.resx to C:\Inetpub\wwwroot\wss\VirtualDirectories\4184\App_GlobalResources in order to using the SharePoint:Liter control in ascx or aspx for Multi-Language). The simply way to do this is run STSADM.EXE -o copyappbincontent

Could you run this command after installation in this installer?
Apr 10, 2009 at 6:44 PM
The copyappbincontent command only copies the files locally, i.e. the installer would need to somehow trigger it on all Web front-end servers in a farm. I currently solve the problem by letting a farm feature start a SharePoint timer job that copies the files in place on all servers. The timer job is triggered by the installer when it activates the farm feature. But I agree it would be a great thing to build this directly into the installer. I am currently working on a spec for the next major upgrade of the solution installer and this feature is definetely something I will consider including.