The start menu entries only appear in the correct location if I add shortcuts to the "normal" location (GUI view, Files, Start Menu). However, in this location there doesn't seem to be a way to add a rule based on an installer parameter. That would seem to be the obvious way - am I missing something?

If I start with an empty startMenuGroupName, move the short cuts to a post-install actions group that also restores the startMenuGroupName, the conditional logic works, and I get a start menu group as expected but the shortcuts end up in the base level of the start menu. Presumably the destination for the shortcuts list is wrong. What should it be?

asked 20 Jul '12, 09:35

amacgaffey's gravatar image

amacgaffey
1222
accept rate: 0%


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>
link

answered 23 Jul '12, 08:06

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×18
×4

Asked: 20 Jul '12, 09:35

Seen: 1,370 times

Last updated: 23 Jul '12, 08:06