16,199
社区成员
发帖
与我相关
我的任务
分享
<Script>installscript.qs</Script>
接着在package.xml的同目录下创建installscript.qs文件,然后添加代码,写法参考官方文档。
例如你要安装时自动安装vc运行库:
function Component()
{
// default constructor
}
Component.prototype.createOperations = function()
{
component.createOperations();
if (systemInfo.productType === "windows") {
component.addOperation("Execute", "@TargetDir@/vcredist_x86.exe", "/q",
"/norestart");
}
}