InstallAware Multi Platfrom /Linux - how to preserve files from being overwritten
Posted: Mon Feb 05, 2024 4:39 pm
Hello,
This is my first post on the forum regarding InstallAware Multi Platfrom (IAMP), I dont have prior experience with InstallAware for Windows, IAMP is used to build a Linux installer.
At the moment I am trying to figure out how to preserve modified (created by the installer or by the user) files, such as licenses/certain config files, between updates. That is a different question why those files are end up in the same directory where binaries are installed, this is just one of several possible scenarios provided by our installer to solve a very particular problem.
As I understand since each build of the installer has its own unique Revision Code/UUID/GUID then in order to prevent leaving orphan files it recommended before update (i.e. installing a new build (even if the files in the installer did not change)) to uninstall the previous copy of the installer, at least the IAMP Wizard generates the script doing that.
The most intuitive approach would be to call "Create Folder"/"Copy Local Files" to simply copy the files needed to be preserved to a temp directory, remove old files ("Apply Uninstall") install new files and copy the aforementioned files back.
But as far as I understand in this case we use native engine, therefore after "Apply Uninstall", files copied to a temp directory are deleted too. In case of Windows I could set native engine to false and it seems the copied files would be preserved, but this Linux installer.
To sum up all stated above: what is the recommended way to prevent certain files from being overwritten by the installer but at the same time make sure that they will be removed by the uninstaller?
Thanks!
This is my first post on the forum regarding InstallAware Multi Platfrom (IAMP), I dont have prior experience with InstallAware for Windows, IAMP is used to build a Linux installer.
At the moment I am trying to figure out how to preserve modified (created by the installer or by the user) files, such as licenses/certain config files, between updates. That is a different question why those files are end up in the same directory where binaries are installed, this is just one of several possible scenarios provided by our installer to solve a very particular problem.
As I understand since each build of the installer has its own unique Revision Code/UUID/GUID then in order to prevent leaving orphan files it recommended before update (i.e. installing a new build (even if the files in the installer did not change)) to uninstall the previous copy of the installer, at least the IAMP Wizard generates the script doing that.
The most intuitive approach would be to call "Create Folder"/"Copy Local Files" to simply copy the files needed to be preserved to a temp directory, remove old files ("Apply Uninstall") install new files and copy the aforementioned files back.
But as far as I understand in this case we use native engine, therefore after "Apply Uninstall", files copied to a temp directory are deleted too. In case of Windows I could set native engine to false and it seems the copied files would be preserved, but this Linux installer.
To sum up all stated above: what is the recommended way to prevent certain files from being overwritten by the installer but at the same time make sure that they will be removed by the uninstaller?
Thanks!