• 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
Running an installer program from a script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running an installer program from a script


  • Subject: Running an installer program from a script
  • From: "francois.houle" <email@hidden>
  • Date: Sun, 05 Jun 2005 22:01:22 -0400

I have created a script where part of it includes running an installer. So I
made it into an application bundle and saved the installer in the Resources
folder.
My first question is, should I do it this way or simply include the
installer in the same folder as the script ?
I have included this following code in my script to startup the installer..
Is that the right way to do it ?

set home_path to (path to me)
tell application "Finder"
open alias ((home_path as string) & "Contents:Resources:installer.mpkg")
end tell

Also, I'd like to know if there is any other way to automate the
installation (such as clicking on Continue, clicking the license agreement,
etc) besides using GUI scripting and refering to each button to click on
them ?

And last, I'd like to know how I can have the script wait in the background
until the Installer is done so the user can keep on going with the script
once the installation is completed. On that one I'd like suggestions on how
you'd take this one on as I now there are different options...

Thanks a lot everyone !
Frank

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Running an installer program from a script
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Tiger: determining if a script is being run as an application
  • Next by Date: Re: Tiger: determining if a script is being run as an application
  • Previous by thread: Re: Tiger: determining if a script is being run as an application
  • Next by thread: Re: Running an installer program from a script
  • Index(es):
    • Date
    • Thread