I'm building an package with two main component trees of three subcomponents in each tree. Each component is a group consisting of the main files and another subcomponent for the source code. I'm developing the installer package on an Ubuntu 10.04LTS host.
I can not re-distribute the source code in one subcomponents. So, I build a UI using parameters that collect users information and download the tarball via httppost.
I expand the tarball and compile the source code from the <readytoinstallactionlist>. Then in the <postinstallationactionlist>, I <adddirectoriestouninstaller> with <addcontents> = 1 for the entire folder tree including the source, resulting binaries and tarball. This tarball does not include any .svn or .git information.
I want users to be able to uninstall each component individually. The uninstaller reports success when I uninstall only this component, but it leaves the files on the host. When I remove the entire package, the files that should have been are removed before are removed. All of the other components/subcomponents uninstall properly/incrementally.
What am I missing? How can I get these files to register properly and remove at the right time with the uninstaller?
asked 26 Apr '12, 11:31
Currently, it is only possible to add files manually to the uninstaller belonging to the project, so they are just deleted when the full application is deleted. We will improve the actions to support registering the files to a particular component but in the meantime, if you can safely delete all the contents, you could place a
answered 26 Apr '12, 11:44
In order to properly unpack and remove files, you can use InstallBuilder's downloadable components feature, which allows you to generate all or some of the components as external files that get downloaded by InstallBuilder automatically.
All that is needed is to set
In order to build the project with downloadable components enabled, the
When using the GUI, the
It is documented in more details in the Downloadable components section of InstallBuilder User Guide.
With your current solution, the
answered 26 Apr '12, 11:39