Installation component config

Aug 13, 2012 at 11:51 AM

As this provider still is needed for DNN, I wanted to share my addition to the DNN manifest for easy installation.

Add this line to the assemblies in the assembly component (don't forget to include the dll file in your package):

<assembly>
	<name>BrandonHaynes.DotNetNukeResXBuildProvider.dll</name>
</assembly>

Add this after all other the components (includes also an uninstallation update):

				<component type="Config">
					<config>
						<configFile>web.config</configFile>
						<install>
							<configuration>
								<nodes>
									<node path="/configuration/system.web/compilation/buildProviders" action="update" key="type" collision="overwrite">
										<add extension=".resx" type="BrandonHaynes.DotNetNukeResXBuildProvider.ResXBuildProvider, BrandonHaynes.DotNetNukeResXBuildProvider" />
									</node>
								</nodes>
							</configuration>
						</install>
						<uninstall>
							<configuration>
								<nodes>
									<node path="/configuration/system.web/compilation/buildProviders/add[@type='BrandonHaynes.DotNetNukeResXBuildProvider.ResXBuildProvider, BrandonHaynes.DotNetNukeResXBuildProvider']" action="remove" />
								</nodes>
							</configuration>
						</uninstall>
					</config>
				</component>