How do I make the start menu optional

Comments

1 comment

  • Avatar
    wojciechka

    Each <shortcut> and <startMenuShortcut> allows specifying a <ruleList> to specify conditions that have to be met for a shortcut to be created. For example the XML below checks if ${add_additionalbinary_shortcut} variable / parameter is set to true:

    <startMenuShortcut>
      <comment></comment>
      <name>Register with other app</name>
      <runAsAdmin>0</runAsAdmin>
      <runInTerminal>0</runInTerminal>
      <windowsExec>${installdir}/additionalbinary.exe</windowsExec>
      <windowsExecArgs></windowsExecArgs>
      <windowsIcon></windowsIcon>
      <windowsPath>${installdir}</windowsPath>
      <ruleList>
        <isTrue value="${add_additionalbinary_shortcut}"/>
      </ruleList>
    </startMenuShortcut>
    

Please sign in to leave a comment.