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. QtIFW add arguments to CreateShortcut operation
Forum Updated to NodeBB v4.3 + New Features

QtIFW add arguments to CreateShortcut operation

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 473 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    StoneByte
    wrote on last edited by
    #1

    On Windows, i want to create a desktop shortcut with arguments:

    component.addOperation("CreateShortcut", "@TargetDir@/My App.exe", "@DesktopDir@/My App.lnk");

    Where and how must i add the arguments? The next statements don't do the job:

    component.addOperation("CreateShortcut", "@TargetDir@/My App.exe arg1 arg2", "@DesktopDir@/My App.lnk");

    component.addOperation("CreateShortcut", "@TargetDir@/My App.exe" arg1 arg2, "@DesktopDir@/My App.lnk");

    I tried everything, but can't figure out how. The documentation and examples are all without arguments.
    Thanx.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Peter Smithson
      wrote on last edited by
      #2

      Did you figure this out? Stuck on it now.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Peter Smithson
        wrote on last edited by
        #3

        Seems that the answer is:

        component.addOperation("CreateShortcut", "@TargetDir@/My App.exe", "arg1 arg2", "@DesktopDir@/My App.lnk");

        I'd tried "arg1", "arg2" but that doesn't work.

        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