add shortcut which includes parameter?

Comments

1 comment

  • Avatar
    juanjo

    You can add any variable in the definition of the shortcut. For example a ${checkforupdates} variable:

       <startMenuShortcutList>
           <startMenuShortcut>
              <comment>Launch ${project.fullName}</comment>
              <name>Launch ${project.fullName}</name>
              <runInTerminal>0</runInTerminal>
              <windowsExec>${installdir}/app.exe</windowsExec>
              <windowsExecArgs>--checkforupdates ${checkforupdates}</windowsExecArgs>
              <windowsIcon></windowsIcon>
              <windowsPath>${installdir}/</windowsPath>
           </startMenuShortcut>
        </startMenuShortcutList>
    

    The shortcuts won't be created until right before the postInstallationActionList so you can delay the definition of the required parameters until that point.

Please sign in to leave a comment.