• 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
Install requirement script returning true
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Install requirement script returning true


  • Subject: Install requirement script returning true
  • From: "Andy Bell" <email@hidden>
  • Date: Tue, 7 Oct 2008 11:46:55 +0200

Hi,

I am quite new to PackageMaker(3.0.2) and have run into a problem with a shell script always returning true.

The script is simple, and simply detects a running application:

#!/bin/sh
if ps auxc | grep -v grep | grep <proc name>; then
exit 1
else
exit 0
fi

I have in raw editing mode:

<installation-check script="pm_install_check();"/>
    <script>function pm_install_check() {
  if(!(system.run('/Users/andy/devel/qt/putplace/running.sh') == true)) {
    my.result.title = 'Update';
    my.result.message = 'You will need to close PutPlace before updating';
    my.result.type = 'Fatal';
    return false;
  }
  return true;
}
</script>

The question how can get my shell script to return 'false' when the application is not running?

Thanks in advance
Andy
 _______________________________________________
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: Install requirement script returning true
      • From: Iceberg-Dev <email@hidden>
  • Prev by Date: adding a post-install script to an mpkg
  • Next by Date: How can I Lauch Finder in postinstall or postupgrade?
  • Previous by thread: adding a post-install script to an mpkg
  • Next by thread: Re: Install requirement script returning true
  • Index(es):
    • Date
    • Thread