• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Help with Installation-check
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with Installation-check


  • Subject: Help with Installation-check
  • From: "Michele Corum -X (mcorum - aap3 at Cisco)" <email@hidden>
  • Date: Thu, 12 Jul 2012 23:54:28 +0000
  • Thread-topic: Help with Installation-check

Help! I'm running in circles here and could use some input.

I am needing to create an installation-check in a flat package. I've
created my script (see below) and it runs correctly. However once I place
it inside the Resources folder in the package and add it the coding to
Distribution, it fails. What am I doing wrong?

My script (installation-check.sh)

	#!/bin/sh
	if [ -e "/Library/Preferences/com.foobar.plist" ]; then
		$(exit 1)
	else
		$(exit 0)
	fi


My coding inside DistributionÅ .

    <installation-check script="pm_install_check();"/>
    <script>function pm_install_check() {
  if(!(system.run('./Resources/installation-check.sh') == true)) {
    my.result.title = 'Error!';
    my.result.message = 'File already installed.';
    my.result.type = 'Fatal';
    return false;
  }
  return true;
}
</script>




Michele Corum
Macintosh Engineer/Developer
aap3 at Cisco Systems, Inc.
400 East Tasman Drive, SJ12-3
San Jose, California 95134
Desk  408.853.3430
Cell    925.586.6173
email@hidden





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Help with Installation-check
      • From: Stephane Sudre <email@hidden>
References: 
 >Re: Flat Installer dies on Leopard 10.5 (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Flat Installer dies on Leopard 10.5
  • Next by Date: Re: Help with Installation-check
  • Previous by thread: Re: Flat Installer dies on Leopard 10.5
  • Next by thread: Re: Help with Installation-check
  • Index(es):
    • Date
    • Thread