I have an installer for a Lotus Notes extension. I need to add entries to the notes.ini
file so that it will call my extension. I'm using the <IniFile addTag>
as follows:
<Directory Id="LOTUSNOTESINSTALLDIRECTORY">
<Component Id="NOTESINIADDINMENUS" Guid="{FC239067-1B5D-48b4-AA9A-8B89F62F21E7}" KeyPath="yes" Win64="no">
<IniFile Id="HLBridgeDLLINI" Action="addTag" Directory="LOTUSNOTESINIDIRECTORY" Name="Notes.ini" Section="Notes" Key="AddInMenus" Value="HLBridge.dll"/>
</Component>
...
This does exactly what I want on initial install. However, when I apply an MSP patch, the entry gets written again, resulting in a double entry for HLBridge.dll.
I have tried using a condition such as "&Feature=3 AND !Feature=2"
to only do the addTag
if the feature is first being installed, but apparently in Wix the feature values are not available at this point. (I can't find the stackoverflow answer that told me why it wasn't working.)
Perhaps addLine
would not have this problem, but would disable other installed Notes extensions.
Is there a way to handle this without writing a custom action?