Code: Select all
Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]
Code: Select all
<ROW Component="DisplayIcon" ComponentId="{1BDAC750-36E0-428C-8A10-874BBA9E2D26}" Directory_="APPDIR" Attributes="4" KeyPath="DisplayIcon_1"/>
...
<ROW Registry="DisplayIcon_1" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]" Name="DisplayIcon" Value="[SystemFolder]msiexec.exe" Component_="DisplayIcon"/>
I would have thought that the properties in the AIP should be based upon the registry values that persist, rather than on things that should not persist.
I started investigating these because I noticed that after an install, it left a second row in the Add-Remove programs list, so that my product is listed twice. I fixed that by removing the registry entry and all it's values
Code: Select all
Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]
Following is an excerpt from my AIP file with the "Uninstall" ones:
Code: Select all
<COMPONENT cid="caphyon.advinst.msicomp.MsiRegsComponent">
<ROW Registry="CurrentVersion" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion" Name="+" Component_="CurrentVersion"/>
<ROW Registry="DisplayIcon_1" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]" Name="DisplayIcon" Value="[SystemFolder]msiexec.exe" Component_="DisplayIcon"/>
<ROW Registry="DisplayName_1" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]" Name="DisplayName" Value="[ProductName]" Component_="DisplayName"/>
<ROW Registry="HelpLink_1" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]" Name="HelpLink" Value="[ARPHELPLINK]" Component_="HelpLink"/>
<ROW Registry="InstallLocation_1" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]" Name="InstallLocation" Value="[APPDIR]" Component_="InstallLocation"/>
<ROW Registry="Language" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]" Name="Language" Value="[ProductLanguage]" Component_="Language"/>
<ROW Registry="Manufacturer" Root="-1" Key="Software\[Manufacturer]" Name="\"/>
<ROW Registry="Microsoft" Root="-1" Key="Software\Microsoft" Name="+" Component_="Microsoft"/>
<ROW Registry="Path" Root="-1" Key="Software\[Manufacturer]\[ProductName]" Name="Path" Value="[APPDIR]" Component_="ProductInformation"/>
<ROW Registry="ProductName" Root="-1" Key="Software\[Manufacturer]\[ProductName]" Name="\"/>
<ROW Registry="ProductName_1" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]" Name="\"/>
<ROW Registry="Publisher_1" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]" Name="Publisher" Value="[Manufacturer]" Component_="Publisher"/>
<ROW Registry="Software" Root="-1" Key="Software" Name="\"/>
<ROW Registry="URLUpdateInfo_1" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]" Name="URLUpdateInfo" Value="[ARPURLINFOABOUT]" Component_="URLUpdateInfo"/>
<ROW Registry="Uninstall" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall" Name="+" Component_="Uninstall"/>
<ROW Registry="UninstallPath_1" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]" Name="UninstallPath" Value="[SystemFolder]msiexec.exe /i [ProductCode]" Component_="UninstallPath"/>
<ROW Registry="UninstallString_1" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]" Name="UninstallString" Value="[SystemFolder]msiexec.exe /i [ProductCode]" Component_="UninstallString"/>
<ROW Registry="Version" Root="-1" Key="Software\[Manufacturer]\[ProductName]" Name="Version" Value="[ProductVersion]" Component_="ProductInformation"/>
<ROW Registry="Version_1" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]" Name="Version" Value="[ProductVersion]" Component_="Version"/>
<ROW Registry="Windows" Root="-1" Key="Software\Microsoft\Windows" Name="+" Component_="Windows"/>
</COMPONENT>