How not to Append Content with TextFileUpdate on Repair - Advanced Installer Community
Collins
Posts: 142
Joined: Wed Oct 12, 2016 2:57 pm

How not to Append Content with TextFileUpdate on Repair

I'm using a text file update to create a text file or append content if the text file already exists on install and then using a replace to remove the appended content on uninstall. The problem is, when you run a repair of the installer, it appends the content in the text file again. How can I stop it for doing that? I have tried adding a condition (NOT REINSTALL~="ALL" OR REINSTALLMODE="ocmusv") on the component, but it doesn't seem to work.
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: How not to Append Content with TextFileUpdate on Repair

Hello,

It seems that indeed, the conditioning of the component that contains the update text file action doesn't work.
You should instead condition the Update Text File action itself. To achieve this please go to "Table Editor" page, select : "Install Execute Sequence" table and "AI_TxtUpdaterInstall" Action. Double click in its condition column and insert the following condition:

Code: Select all

NOT (REMOVE<>"ALL" AND Installed)
Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”