wix - Creating Element as first item within another element using Wxs (Windows Installer) -
i using wix installer application , 1 of scenarios trying handle changes .config file when application upgraded. essentially, want add xml element within xml element. instance, original .config file shipped application looked
<root-element> <sub-element-1/> <sub-element-2/> </root-element> during app lifetime, updated below @ point.
<root-element> <sub-element-0/> <sub-element-1/> <sub-element-2/> </root-element> for handling case , need add <sub-element-0/> under <root-element>, tried wxs code.
<util:xmlfile id="myconfig" file="[fileidofmyconfigfile]" action="createelement" name="sub-element-0" elementpath="root-element" sequence="1"/> the above formulation add sub-element-0 under root-element , last item under root-element.
<root-element> <sub-element-1/> <sub-element-2/> <sub-element-0/> </root-element> i couldn't find resources on adding first element want be. suggestions on how accomplished?
note: above simplified version of use case. reason order important in case due limitation on framework elements need occur before other elements in .config
Comments
Post a Comment