我正在创建Office 2007的自动安装.要自定义Office 2007安装,Office自定义工具(OCT)会为您完成大部分工作. OCT的一个功能是能够在Office安装期间运行其他程序.然而它很糟糕.
幸运的是,通过编辑安装程序文件中包含的适当的config.xml文件,您可以更好地控制运行这些附加程序.在config.xml文件中,此功能由命令元素定义. 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.
有没有人有这个问题的经验?我很想从中获得另一种观点.