Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7905517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:30:38+00:00 2026-06-03T10:30:38+00:00

I have a Mac OS X flat package that runs a postinstall script. I

  • 0

I have a Mac OS X flat package that runs a postinstall script. I would like to know in the script if it’s a new install or an upgrade. Bundle-style packages have pre and postupgrade scripts but I can’t use a bundle package.

I’ve dumped out the environment variables in the script and I’ve dumped the arguments to the script itself and none of these seem to indicate if it’s an upgrade or install. I can tell that Installer knows because the Installer Log indicates install or upgrade. I just don’t know how to tell from the postinstall script.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T10:30:39+00:00Added an answer on June 3, 2026 at 10:30 am

    If it’s your package, why don’t you check for signs that you’re already on the machine? Either leave some marker that will tell you that you’ve already been installed or check if your old files are present on the disk before deployment?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a mac with a custom PHP 5 install that built from about
By now all Mac App Store developers know that all apps must have the
I have mac OS X and would like the built-in apache webserver to run.
i have mac preinstalled svn at ->/usr/bin/svn i have macport install svn at -->opt/local/var/macports/software/subversion/1.6.3_0/opt/local
First I have install Mac 10.6.3 on my system now I want to install
I am new in mac os. I have one Mac book pro. I am
I have created a mac application using the WebView. But issue is that webView
I have extracted a MAC address into a char* array such that each section
I have developed a Mac software (using DiscRecordingFramework and IOKit) that creates hybrid Video-DVD.
I have a mac (runs OS X Lion), when I create XCode projects, there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.