I like the software to be installed multiple times into different locations. Later on when an upgrader installer runs, it can auto-detect the multiple instances and prompt a list of the instances to let user to pick which one to upgrade.

Right now with the default behavior of InstallBuilder if I run the installer the second time, I can point to a different location, but it overwrites the same Start Menu shortcuts and the ARP shortcuts. And I don't see how I can easily create an upgrader installer that can prompt a list of existing installations.

asked 05 May '12, 04:20

gt8967884's gravatar image

accept rate: 12%

The startMenu cna be configured through the <startMenuGroupName> tag and the ARP through the <windowsARPRegistryPrefix>. So you could modify those values at runtime:

            <setInstallerVariable name="index" value="1"/>
                    <text>${index} +1</text>
                <registryTest key="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\${project.windowsARPRegistryPrefix} ${index}" logic="exists">
            <value>${project.windowsARPRegistryPrefix} ${index}</value>
            <value>${project.startMenuGroupName} ${index}</value>
            <registryTest key="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\${project.windowsARPRegistryPrefix}" logic="exists"/>

To provide a list of choices when upgrading, you could use a <registryFind> and a

  <description>Select the Application to update</description>
      <variables>key name value</variables>
            <md5 text="${key}" variable="md5"/>

answered 06 May '12, 17:37

juanjo's gravatar image

juanjo ♦♦
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: 05 May '12, 04:20

Seen: 1,357 times

Last updated: 06 May '12, 17:37