Re: Getting the list of arguments passed with installer command in preinstall or postinstall
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=iyWRfNJb7UjLDl8D3S8i1qkZ3mmnBRWPaodScCkwzB4=; b=ag9zQ6Jwd+64paf0yWAad7udEd7h/5isiq1mkNKy3LUYgcCF8A/Z9IRMn/mRHHIdXA QvhJlRoUFKfoxfzs3SYMeMxQSl6WUC5Gk4Mnwkz1F+K75kqDhGgttmWTAYa9n+PPtNaM dqPvG/dU+tjvy5w/o8sHA5utHi9qxsjVElRqM= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=UGI7aF6upM4JNSsh/Mn5cyL5ZOqcFBW6fiufq3ZCxWqtPe3Pq2KrY4O1jlDfNzRbkU W8C1TkDCDRRR+6Jl9E9UJTQHssVezTAjbVCz8XU7iLwyKM0gKhmCO1+0qgyCOH06HZ6V JEbi0bypV8kektuUGQrAxb0j1ZKEBkegDCSEw= On Wed, Feb 2, 2011 at 9:52 AM, kushal ghosh <kghoshnitk@gmail.com> wrote:
Hi, Is there any way of finding out the list of arguments passed to the installer command in postinstall/preinstall? For example my intention is that by any way can we detect the filename which is given with -applyChoiceChangesXML while running the installer in CLI in the postinstall/preinstall scripts? installer -pkg abc.pkg -applyChoiceChangesXML choicesfile -target / Here inside abc.pkg which has its own postinstall and preinstall scripts can we get the "choicesfile" file name?
Assuming we are talking about a flat distribution for abc.pkg. abc.pkg does not have a preinstall or postinstall script. It's actually an invisible package of the distribution that contains these scripts. I would say that if you need to perform actions based on a package being installed or not, it's better to have your own invisible package and its selected state dependent of the other package(s'|'s) selected state(s). My $0.014 _______________________________________________ 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: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre