-
We are using a <StandardDirectory Id="CommonAppDataFolder">
<Directory Id="..." Name="a">
<Directory Id="..." Name="b">
<Component Id="..." Guid="..." Condition="...">
<CreateFolder />
<IniFile Id="..." Action="createLine" Directory="c" Section="..." Name="d.conf" Key="..." Value="..." />
</Component>
</Directory>
</Directory>
</StandardDirectory> All works well on first installation: the file But when updating, if the condition is not satisfied, the file Reading the Components attributes documentation we found ...
<Component Id="..." Guid="..." Condition="..." Transitive="false">
...
</Component>
... Do you have any advice to use |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You should probably consult the Microsoft installer component information around this. Also note, setting Transitive='false' is the default. You don't need to include the attribute if you want the 'false' behaviour.. that's what you are getting. It sounds like you might want Permanent='true' for this file component, and then handle removal in a different manner. |
Beta Was this translation helpful? Give feedback.
-
Thank you @bevanweiss. I have tried using |
Beta Was this translation helpful? Give feedback.
-
I have addressed this problem by setting the |
Beta Was this translation helpful? Give feedback.
I have addressed this problem by setting the
Condition
to true when the INI file already exists and settingNeverOverwrite="true"
.