Windows Installation scope & ARP

Comments

2 comments

  • Avatar
    wojciechka

    It is not currently possible to configure this behavior. InstallBuilder only registers the application in HKEY_LOCAL_MACHINE. We will add your suggestion to allow configuring it to our bug tracking system.

    As a workaround, you can set <createWindowsARPEntry> to 0 and disable creating the ARP entries automatically. You can then create appropriate entries manually by doing:

    <project>
      <!-- ... -->
      <postInstallationActionList>
        <registrySet>
          <key>HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${project.vendor} ${project.fullName} ${project.version}</key>
          <name>${project.fullName}</name>
          <type>REG_SZ</type>
          <value>DisplayName</value>
        </registrySet>
        <registrySet>
          <key>HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${project.vendor} ${project.fullName} ${project.version}</key>
          <name>${installdir}</name>
          <type>REG_SZ</type>
          <value>InstallLocation</value>
        </registrySet>
        <!-- other values for ARP -->
      </postInstallationActionList>
      <postUninstallerCreationActionList>
        <registryDelete>
          <key>HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${project.vendor} ${project.fullName} ${project.version}</key>
          <name>DisplayName</name>
        </registryDelete>
        <registryDelete>
          <key>HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${project.vendor} ${project.fullName} ${project.version}</key>
          <name>InstallLocation</name>
        </registryDelete>
        <!-- other values for ARP -->
      </postUninstallerCreationActionList>
      <createWindowsARPEntry>0</createWindowsARPEntry>
    </project>
    
  • Avatar
    BlueCloud

    Thank you.

    can I use <project.windowsarpregistryprefix> variable??

    ex) set <project.windowsarpregistryprefix> to 'empty'

Please sign in to leave a comment.