【发布时间】:2010-09-07 05:34:45
【问题描述】:
我正在创建 Office 2007 的自动安装。要自定义 Office 2007 安装,Office 自定义工具 (OCT) 会为您完成大部分工作。 OCT 的一项功能是能够在 Office 安装期间运行其他程序。然而它在这方面很差。
幸运的是,通过编辑安装程序文件中包含的适当config.xml 文件,您可以更好地控制这些附加程序的运行。在config.xml 文件中,此功能由command 元素定义。 TechNet 上的This link 都在谈论它。
在本文档中指出:
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" />
我想在我希望传递给我正在执行的命令的参数中使用双引号。不幸的是,当我按照示例配置 config.xml 文件时,Office 2007 安装程序崩溃并在安装日志中显示以下错误消息:
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.
有人对这个问题有任何经验吗?我很想从另一个角度来看待它。
【问题讨论】:
标签: xml installation packaging office-2007