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

东方辉
2023-12-01

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

 类似资料: