Qt Installer Framework桌面上创建快捷方式

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);
    }
  }
}

你可能感兴趣的:(Qt,qt)