3

I'm creating an automated installation of Office 2007. To customise your Office 2007 installation the Office Customization Tool (OCT) does most of the work for you. One the OCT's features is the ability to run additional programs during the Office installation. However it is pretty poor at it.

Fortunately by editing the appropiate config.xml file contained within the installer files you have more control over running these additional programs. Within the config.xml file this feature is defined by the command element. This link on TechNet talks all about it.

In this documentation it 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-quotation marks in an argument that I wish to pass to the command I'm executing. Unfortunately when I configure my config.xml file as shown in the example, the Office 2007 installer crashes and displays the following error message in the setup 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'd love to get another perspective on it.

4

1 に答える 1

2

&quot;標準 XMLでは、 、&34;またはを使用して属性値に引用符を埋め込みます&#22;

XML エンティティ参照のリストについては、ウィキペディアのページを参照してください。

これで問題が解決するかどうかはわかりませんが、これは XML パーサー エラーであるため、解決する必要があります。

于 2008-08-29T08:14:32.870 に答える