• 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
Re: Uninstall script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Uninstall script


  • Subject: Re: Uninstall script
  • From: SVV Satyanarayana <email@hidden>
  • Date: Wed, 5 Mar 2008 15:03:17 +0530

Hi,

Thanks for the reply. Please clarify my doubts:
1. I am using Mac Tiger, and I didn't find any directory "boms" on my Mac. How to move further now?
2. When I saved it as Application bundle, the icon of the bundle is some default icon. If I change it to my own icon, at the time of creating .dmg file for distribution, how the icon has to be handled?

Regards,
SVV Satyanarayana
Bangalore, India


On 29-Feb-08, at 8:07 PM, Philip Aker wrote:

On 08-02-28, at 22:05, SVV Satyanarayana wrote:

Problem: I am writing some application using carbon/cocoa framework. It includes plugins, dylibs etc. It is packaged in such a way that during install it needs admin rights ie it will for authorization at the time of install. Similarly at the time of uninstall from finder(ctrl+click and select "Move To Trash" it is automatically asking authorization). The application is installed in /Applications and dependencies(plugins, dylib, config files etc) in /Library/MyAppName.  I want to write some apple script that will uninstall all the application+dependencies.  It must ask only once for the authorization.

The standard method to install an application like yours is to use the PackageMaker application. When it installs your application, it will put a <MyApp>.pkg in /Library/Receipts and possibly a .bom in /Library/Receipts/boms. Then, in your uninstaller script, you will mostly likely run a shell script which uses 'lsbom' to get the listing of all the installed items to remove. Run this script will the AppleScript command:

do shell script "blah blah blah..." with administrator privileges


I want the script to be installed as different bundle while installation.

When you create the disk image for your distribution put the installer package created by PackageMaker and your uninstaller script application at the top level of the disk.


Also can you tell me whether I have to save the script as "Application" or "Script Bundle" or "Application Bundle" etc

You will probably want to save your script as an Application bundle so you can include any shell scripts it will run in its /Resources/Scripts subfolder.


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Uninstall script
      • From: Philip Aker <email@hidden>
    • Re: Uninstall script
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Re: slide class in PowerPoint 2004
  • Next by Date: Re: XML to AppleScript Record
  • Previous by thread: Re: slide class in PowerPoint 2004
  • Next by thread: Re: Uninstall script
  • Index(es):
    • Date
    • Thread