Re: PackageMaker and AppleScript check
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:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=MbnHZk9UDKmElJvwhIR56F9EwSqEc18Rb9f0/ZgzV6I=; b=gPwB8P7r7sMJ/lEXDTS8rPV3MUtMRUAu97/iwnnDP8Md+I56a4f/mMJl5bCeqLc3dO l2ZEydNJLaaXdvIxt/FvRD71EJlcJ4DMtTbjaTioF9UwvskVXqXsznXMT/vgZC3biVuq KLw4YzGun52agg/dK1x0icidm/uCqHLKfSZqY= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=g2py28x4YY/8kD+kOrsIA80kK1rYNzMbQIsoUIvrriwl95s3O6mA5s/X3oat1+Ijsx a/RjGQXBWrPXiWqJS9arNJgbKS0/WoliUv/7Nzj09Ndlr+TjsbYcM+NLsZX1NIzJ+JKc ApkURgp+ATLFkisC0oDVoztT1SYjV3FI1Hsv4= On Apr 30, 2009, at 10:38 AM, Marco Bambini wrote: Hello, <script> function installation_check() { system.run(relative_path_to_your_script); return true; } </script> [...] ./ is the Resources folder of your distribution as far as I can tell. _______________________________________________ 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... I am developing an installer using PackageMaker (10.4 target) ... what I would like to do at startup is to check if a file exists and then ask the user if he want to remove it? If yes the file will be deleted, otherwise it will be retained... then the standard installation process can continue. I can use AppleScript and the script would be easy to write, but I wonder how I can embed it into the installer. Call your AppleScript script from the Installation Check JavaScript. Don't forget to allow the use of external scripts. <?xml version="1.0" encoding="UTF-8"?> <installer-script authoringTool="Ivanhoe" authoringToolVersion="2.0" authoringToolBuild="2B2" minSpecVersion="1.0"> <options allow-external-scripts="true"/> <installation-check script="installation_check()"/> [...] This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev