site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cern.onmicrosoft.com; s=selector1-cern-ch; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=cqwiPV91SlZ16JGgUuV2HTIoPxvCa8zUbduJD6XnyZk=; b=vkG6K7Wc10OBofN86Ynk7U113aRI/vXbfydkjkgUYQk9hOMmhwPfOeFasJijkC/2TkAjhGXb3x8ewr6qPhyMBsjsxzHKjXnpMQRrnm8/UUEdPVCqZzX8NFWPKvc4XuzTPCcYfnEFeeHs1i+V8IUDuR04ZhUguZYRwi0ktTJSfKQ= Spamdiagnosticmetadata: NSPM Spamdiagnosticoutput: 1:99 Thread-index: AQHTTNSgKAxltQCIwEWyjssmvPt81KLy9LAA Thread-topic: Packages - Replace File if it is newer Hi, I see two possible solutions for your issue: - you install the file in question in a post install script that does the checking whether or no the existing file is older - you install the file in question as separate package and run a pre-install check whether or not the existing file is older. I always use pre-install scripts to check whether the same or a newer version of the package is installed already. The dependencies can nicely be handle by Packages. Hope this helps, Matthias
On 24 Oct 2017, at 16:29, Hanspeter Harpf <hanspeterharpf@mac.com> wrote:
Dear all,
I created with the Packages Installer my installation application. So far everything works fine but I have one issue which is bothering me for some days.
My previous installer v2.6.0 installs for example following file: /Users/Shared/Test.txt
Now the issue is that within that file the main application stores information which has been created during the use of the software.
My „new“ installer installs now again the file mentioned above and overwrites that file. So the custom data of the user is gone.
Is there a method / way in Packages to avoid the overwriting of that file?
Several years ago I used the software from MindVision VISE X and I could define within that installation application when a file should be replaced. I had there these options for example: - Only replace file if it is newer (compare modification dates) - Never replace file - Always replace file (this option seems to be the default option in Packages as it always replaces the files and deletes those files which are not anymore in the installer)
Can this behaviour also reached with Packages?
Thank you very much for any comment on this issue! Best Regards, Hanspeter Harpf _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/matthias.schroder%40ce...
This email sent to matthias.schroder@cern.ch
_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com smime.p7s