Remove user selections from ini file on uninstall

Comments

1 comment

  • Avatar
    wojciechka

    Unfortunately InstallBuilder does not provide action to remove values from an INI file. However, you can set the unused values to empty strings.

    For example (please note addition of persist="1" to keep the variable value for uninstaller:

    <postInstallationActionList> <setInstallerVariable name="ini_file" value="${user_home_directory}/InstallBuilderInstall.ini" persist="1" /> <iniFileSet> <file>${ini_file}</file> <key>installdir</key> <section>${product_fullname}-settings</section> <value>${installdir}</value> </iniFileSet> </postInstallationActionList> <postUninstallationActionList> <iniFileSet> <file>${ini_file}</file> <key>installdir</key> <section>${product_fullname}-settings</section> <value></value> </iniFileSet> </postUninstallationActionList>

Please sign in to leave a comment.