在安装程序文档中,我找到了一个名为UrlQueryString
(它在文档中列出)的元素。但是,如果我尝试使用它,则会binarycreator
失败并出现以下错误:
Caught exception: Error in ./config/config.xml, line 20, column 17: Unexpected element 'UrlQueryString'.
我的config.xml
样子是这样的:
<?xml version="1.0" encoding="UTF-8"?>
<Installer>
<Name>MyApp</Name>
<Version>1.0.0</Version>
<Title>MyApp Installer</Title>
<Publisher>Me</Publisher>
<StartMenuDir>MyApp</StartMenuDir>
<TargetDir>@HomeDir@/AppData/Local/MyApp</TargetDir>
<AdminTargetDir>@ApplicationsDir@/MyApp</AdminTargetDir>
<RunProgram>MyApp</RunProgram>
<AllowSpaceInPath>true</AllowSpaceInPath>
<AllowNonAsciiCharacters>true</AllowNonAsciiCharacters>
<RemoteRepositories>
<Repository>
<Url>http://example.com/repositories/MyApp</Url>
<Enabled>1</Enabled>
<DisplayName>MyApp Repository</DisplayName>
</Repository>
</RemoteRepositories>
<UrlQueryString>os=win</UrlQueryString>
<ControlScript>autoNextControl.js</ControlScript>
</Installer>
我用UrlQueryString
错了吗?我也尝试将它放入Repository
,但它会用不同的行产生相同的错误。
我正在使用框架的 2.0.1 预编译版本,与在 windows 上创建的文档相同(但后来也是 mac/x11)。