How to let user control the scope of StartMenu/Desktop shortcuts?

Comments

1 comment

  • Avatar
    michiel

    You can change the installationscope value using <setInstallerVariable> in the following way:

    First you can create a choiceParameter with the following options:

     <choiceParameter name="installScope">
          <description>For which users do you want to install this program?</description>
          <displayType>radiobuttons</displayType>
          <optionList>
            <option description="Install for all users" value="allusers" text="All Users">
            </option>
            <option description="Install only for current user" value="user" text="Current User">
            </option>
          </optionList>
            ...
    

    And in the <postShowPageActionList> you can set the project.installationScope variable:

          ...
         <postShowPageActionList> 
            <setInstallerVariable name="project.installationScope" value="${installScope}"></setInstallerVariable>
         </postShowPageActionList>
    </choiceParameter>
    
    0
    Comment actions Permalink

Please sign in to leave a comment.