Windows Installer, Java Installer, Freeware Installer
Home|Contact|Site Map|TOC|Search
Download  Features   Java  Licensing  Purchase  Testimonials  Support  Forums

How do I prevent a file from being uninstalled or repaired?

Answer

OrganizationYou need to modify some attributes of that file's component, in the "Organization" page.

  • to prevent it from being repaired check the "Never Overwrite" attribute
  • to prevent it from being uninstalled check the "Permanent" attribute

However, this method has some drawbacks. By using it, that file has to be manually repaired or deleted by the user if it gets corrupted.

If you already released a version without using these options and want to prevent a file from being uninstalled you could use this method.

As a general idea, it is not recommended to use the installed file to store any user data. The best way would be for the application to create a new file that stores it. At the simplest form, this method would consist of simply creating a copy of the installed file and modifying that.

If the application cannot create the file from scratch it should use the installed file as a template for the files that store user data. That is, the application uses the installed files as a starting point. It merges the user data with the template data to create the new file.

Privacy Policy | Windows Installer | Search Engine Ranking | Link Analyzer