Unattended installation of Microsoft Office 2007 - editing the config.xml file

I am creating an unattended installation of Office 2007. To customize your installation of Office 2007, the Office Customization Tool (OCT) does most of the work for you. One of the features of OCT is the ability to run additional programs during the installation of Office. However, he is rather poor.

Fortunately, by editing the appropriate config.xml file contained in the installer files, you have more control over the launch of these additional programs. Inside the config.xml file, this function is defined by the command element. This TechNet link talks about all this.

This documentation states:

 Attributes You can specify double-quotation marks (") in the Path and Args attributes by specifying two double-quotation marks together (""). <Command Path="myscript.exe" Args="/id ""123 abc"" /q" /> 

I would like to use double quotes in the argument, which I want to pass to the command that I am executing. Unfortunately, when I configure my config.xml file, as shown in the example, the Office 2007 setup program crashes and displays the following error message in the configuration logs:

 Parsing config.xml at: \\aumel1pc356\c$\Documents and Settings\nichollsd2\Desktop\source\office\Enterprise.WW\config.xml Error: XML document load failed for file: \\aumel1pc356\c$\Documents and Settings\nichollsd2\Desktop\source\office\Enterprise.WW\config.xml HResult: 0x1. 

Does anyone have any experience with this issue? I would like to get another perspective.

+4
source share
1 answer

In standard XML, you insert quotation marks in attribute values ​​with &quot; , &34; or &#22; .

See the Wikipedia page for a list of XML entity references.

I don’t know if this will solve your problem, but, seeing that this is an XML parser error, it should.

+2
source

Source: https://habr.com/ru/post/1276478/


All Articles