Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt IWF adding parameters to link definition
QtWS25 Last Chance

Qt IWF adding parameters to link definition

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
qt ifw 2.0installer frame
2 Posts 1 Posters 887 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    koahnig
    wrote on last edited by
    #1

    With the Qt install framework I am setting up also links in windows.

    ´´´
    Component.prototype.createOperations = function()
    {
    component.createOperations();

    if (systemInfo.productType === "windows") {
        component.addOperation("CreateShortcut", "@TargetDir@/ArramgeApplication.exe", "@StartMenuDir@/Arrange Application.lnk",
            "workingDirectory=@TargetDir@", "iconPath=@TargetDir@/Manager.exe");
    }
    

    }
    ´´´
    ArrangeApplication.exe requires 2 parameters. The first is basically an extended TargetDir and the second a fixed folder.
    When typing the parameters into the target line together with the command directly in the lnk file it is working. The problem is to place the parameters into the target line.
    I havetried to extend the second parameter in addOperation above, but this failed.

    Any ideas?

    Vote the answer(s) that helped you to solve your issue(s)

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by koahnig
      #2

      It is apparently a replace and an escape issue.

      component.addOperation("CreateShortcut", "@TargetDir@/ArramgeApplication.exe para1 para2", "@StartMenuDir@/Arrange Application.lnk",
          "workingDirectory=@TargetDir@", "iconPath=@TargetDir@/Manager.exe");
      

      Creates the installer and creates also a link and adds the two parameters.

      component.addOperation("CreateShortcut", "@TargetDir@/ArramgeApplication.exe @TargetDir@ para2", "@StartMenuDir@/Arrange Application.lnk",
          "workingDirectory=@TargetDir@", "iconPath=@TargetDir@/Manager.exe");
      

      Creates the installer, but fails when trying to create the lnk.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved