I have created a installer using Bit Rock, but my application is not listed in installed programs. I can able to uninstall by manually clicking uninstall.exe created while installing, but not using control panel.

asked 09 Oct '12, 02:53

Ramya's gravatar image

Ramya
16336
accept rate: 0%


In order to register the non-elevated installation on Windows in HKEY_CURRENT_USER, the following can be used:

<project> <createWindowsARPEntry>0</createWindowsARPEntry> <installationScope>user</installationScope> <postInstallationActionList> <actionGroup> <actionList> <registrySet> <key>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\${project.vendor} ${project.fullName} ${project.version}</key> <name>DisplayName</name> <type>REG_SZ</type> <value>${project.fullName}</value> </registrySet> <registrySet> <key>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\${project.vendor} ${project.fullName} ${project.version}</key> <name>DisplayVersion</name> <type>REG_SZ</type> <value>${project.version}</value> </registrySet> <registrySet> <key>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\${project.vendor} ${project.fullName} ${project.version}</key> <name>Publisher</name> <type>REG_SZ</type> <value>${project.vendor}</value> </registrySet> <registrySet> <key>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\${project.vendor} ${project.fullName} ${project.version}</key> <name>UninstallString</name> <type>REG_SZ</type> <value>${installdir}\uninstall.exe</value> </registrySet> <registrySet> <key>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\${project.vendor} ${project.fullName} ${project.version}</key> <name>NoModify</name> <type>REG_DWORD</type> <value>1</value> </registrySet> <registrySet> <key>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\${project.vendor} ${project.fullName} ${project.version}</key> <name>NoRepair</name> <type>REG_DWORD</type> <value>1</value> </registrySet> </actionList> </actionGroup> </postInstallationActionList> <postUninstallationActionList> <actionGroup> <actionList> <registryDelete> <key>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\${project.vendor} ${project.fullName} ${project.version}</key> <name></name> </registryDelete> </actionList> </actionGroup> </postUninstallationActionList> ... </project>

It creates and removes records that will cause the program to show up in list of installed applications.

link

answered 02 Nov '12, 05:20

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

This is controlled by the <createWindowsARPEntry> setting in the project and is enabled by default.

Perhaps the project you are creating has it disabled and this is the reason for not creating it. Please check if the setting exists, and add if it is not in the XML - for example:

<project> ... <createWindowsARPEntry>1</createWindowsARPEntry> </project>

If this happens with the setting enabled, please send a full project XML and platform information to bitrock.com">support@bitrock.com in order to investigate the issue further.

link

answered 09 Oct '12, 08:09

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

<windowsarpregistryprefix>${product.fullname}</windowsarpregistryprefix> I have the above tag in my XML file. It creates entry in particular machines but not in my machine.Both has the same OS installed(windows 7). I don't find uninstall entry in "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall" in my machine.

(01 Nov '12, 08:13) Ramya

In windows 7, when UAC level is set to Default settings, uninstall entry is not created. Can you please provide a solution for this?

(01 Nov '12, 09:30) Ramya

InstallBuilder registers itself in HKEY_LOCAL_MACHINE and it is not writable unless installer runs as elevated. I have posted a separate answer on how to register the installation manually in registry.

(02 Nov '12, 05:18) wojciechka ♦♦

The value for <requestedexecutionlevel> should be "highestAvailable" rather than "asInvoker".

link

answered 01 Nov '12, 09:51

Ramya's gravatar image

Ramya
16336
accept rate: 0%

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:

×83
×14
×13
×6

Asked: 09 Oct '12, 02:53

Seen: 4,203 times

Last updated: 02 Nov '12, 05:20