I would like to edit the NLogConfig file with MSI Installation using WiX Toolset v4.
Using the util:XmlFile from WiX Toolset. I get an error message at compliation:
“ICE03: Invalid format string; Table:Wix4XmlFile, Column:ElementPath, Key(s): editNLogConfig”.
I have tried this:
This is the ElementPath:
your text
ElementPath=”/nlog/targets/target[1]/@fileName”.
I have 3 Properties: ENVIMPORTDIR, IMPPART1 and IMPPART2 their values are supplied by the user via the cmd line and are to be substituted here in the (replacement) Value:
your text
Value=”${[ENVIMPORTDIR]}[IMPPART1] layout=[IMPPART2]”
your text
ENVIMPORTDIR = “ttt-filer.tt.yysdfuerqarsdf2”
your text
IMPPART1″ =” MyApp_WinServ_CentralMyAppsystemlogsMyApp_WinServ_${shortdate}.log”
your text
IMPPART2 Value=”${longdate} ${uppercase:${level}} ${message}” />
I have used an online XPath Tester to verify the syntax and the above was OK there.
Can somebody tell me why I get the error ICE03? Can anybody see what is wrong with the values for the Attributes: ElementPath and/or Value?
Any help is very appriciated
NadjaL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.