我使用 Qt Installer 框架 1.5
安装后,我想在桌面上添加一个快捷方式。
在我的文件 installscript.qs 中,我尝试了:
Component.prototype.createOperationsForPath = function()
{
if (installer.value("os") === "win")
{
try {
component.addOperation("CreateShortcut", "@TargetDir@/App.exe", "@DesktopDir@/App.lnk");
}
catch (e) {
print(e);
}
}
}
但它不起作用,没有创建快捷方式,我也没有任何错误消息。互联网上的文档真的很轻。
任何想法 ?谢谢