Search code examples
windows-installerinstallationpackaging

How to preserve fonts installed by Advanced Installer package even after uninstallation?


One simple question, I've used Advanced Installer along time ago to pack my files and deploy them on the client machine, and I used to pack some special fonts used by my application.
The problem is: when I uninstall the package created with Advanced Insatller the fonts included in the package also gets removed from the operation system, How can I preserve fonts after package uninstallation from within Advanced installer IDE ?
PS: I can do it using Inno Installer by using something like:

uninsneveruninstall

Example:

[Files]
;;Fonts:
Source: "C:\Windows\Fonts\DS-DIGI.TTF"; DestDir: "{fonts}"; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: "DS-Digital"

I want something like that in Advanced Installer.
Regards,


Solution

  • I found it eventually!

    1. First go to the file or font you want to keep after uninstall.

    2. Right click and choose Go to component.

      enter image description here

    3. The component that hold the file(s) will be highlighted and you can expand it to see the inner files:

    enter image description here

    1. Just make sure that the files are selected within the component and choose Permenant from the Component properties section.