Test  Case 19: Verify application creates uninstall registry key and values (Req:2.7)

Question: I've used a setup project to create the installer. But the uninstall registry key is not created.

Answer: For Install Location, we need to set ARPINSTALLLOCATION Property through a custom action in our msi. The custom action will set the ARPINSTALLLOCATION to the TargetDir. To do this using Orca we need the following changes to the msi

Step 1:  In the CustomAction table set the following row values:

Action      

Type

Source                                    

Target

MyTargetDir     

51        

ARPINSTALLLOCATION

[TARGETDIR]        

 

Step 2:  In the InstallExecuteSequence table set the following row values: 

Action

Condition

Sequence

MyTargetDir         

ARPINSTALLLOCATION=""                     

798


We can also leave the condition blank in the InstallExecuteSequence.