Re: Creating aliases for all users? (LONG)
Re: Creating aliases for all users? (LONG)
- Subject: Re: Creating aliases for all users? (LONG)
- From: "David A. Pegram" <email@hidden>
- Date: Wed, 03 Aug 2005 09:29:53 -0400
I didn't see anything obvious in the installer log (see below). I also
looked in the console log and didn't see anything there related to the
installer. The only behavior we see is:
1) It does not remove aliases from all user accounts, it will remove my
alias just fine; no error dialogs are displayed
2) After creating the new alias in my account, it displays an apple
script error dialog stating, "The operation could not be completed
because you do not have enough access privileges."
Thanks again for any and all help!
- David
Aug 3 09:05:07 : @(#)PROGRAM:Install PROJECT:Install-124
DEVELOPER:root BUILT:Jun 16 2005 19:48:51
Aug 3 09:05:07 : @(#)PROGRAM:Installer PROJECT:Installer-86
DEVELOPER:root BUILT:Jun 1 2005 16:40:32
Aug 3 09:05:07 : Hardware: PowerBook5,7 @ 1666 MHz, 512 MB
Aug 3 09:05:07 : Running OS Build: 8C46
Aug 3 09:05:07 : NCDesk (Computer Skills Online Test), 1.1 - Fall 2005
Installation Log
Aug 3 09:05:07 : Opened from: /Users/dpegram/Desktop/Install/NCDesk.pkg
Aug 3 09:05:07 : It took 0.038959 seconds to load 7 UI sections
Aug 3 09:05:08 : It took 0.504595 seconds to finish launching.
Aug 3 09:05:09 : It took 1.542701 seconds to do the initial process of
the targets
Aug 3 09:05:09 : It took 1.317584 seconds to -[IFPKGDerivedDocument
readAndValidateDocument]
Aug 3 09:05:09 : Installation checks completed successfully.
Aug 3 09:05:09 : It took 0.292070 seconds to process the volume
"Macintosh HD"
Aug 3 09:05:21 : admin auth received to install
Aug 3 09:05:21 :
================================================================================
Aug 3 09:05:21 : User picked Easy Install
Aug 3 09:05:21 : Choices selected for installation:
Aug 3 09:05:21 : Upgrade: "NCDesk (Computer Skills Online Test), 1.1 -
Fall 2005"
Aug 3 09:05:21 : NCDesk.pkg : edu.ncsu.cuacs.ncdesk : 1.1.0.1.1
Aug 3 09:05:21 :
================================================================================
Aug 3 09:05:21 : It took 0.001392 seconds to summarize the package
selections.
Aug 3 09:05:21 : Starting installation:
Aug 3 09:05:21 : Preparing volume "Macintosh HD" for installation
Aug 3 09:05:21 : Configuring volume "Macintosh HD"
Aug 3 09:05:22 : Preparing local booted disk
Aug 3 09:05:22 : Create temporary directory
"/private/tmp/NCDesk.pkg.4263RbzWj"
Aug 3 09:05:22 : run preflight script for NCDesk (Computer Skills
Online Test), 1.1 - Fall 2005
Aug 3 09:05:23 : Processing NCDesk (Computer Skills Online Test), 1.1 -
Fall 2005:
Aug 3 09:05:23 : Initialize patching
Aug 3 09:05:23 : Determining files to install
Aug 3 09:05:23 : Evaluating versions of bundles
Aug 3 09:05:23 : Evaluating custom file version checking
Aug 3 09:05:23 : Configuring deferred files
Aug 3 09:05:23 : Determing obsolete files
Aug 3 09:05:23 : Assembling temporary receipt
Aug 3 09:05:23 : Performing pre-extraction actions
Aug 3 09:05:23 : Removing obsoleted files
Aug 3 09:05:23 : Creating destination path
Aug 3 09:05:23 : Extracting files
Aug 3 09:05:23 : 32 files looked up in 0.00 seconds. 32 files written
in 0.07 seconds.
Aug 3 09:05:23 : 0 kilobytes installed.
Aug 3 09:05:23 : Performing post-extraction actions
Aug 3 09:05:23 : Assembling receipt
Aug 3 09:05:23 : run postflight script for NCDesk (Computer Skills
Online Test), 1.1 - Fall 2005
Aug 3 09:05:52 : Removing temporary directory
"/private/tmp/NCDesk.pkg.4263RbzWj"
Aug 3 09:05:52 : Finalize disk "Macintosh HD"
Aug 3 09:05:52 : Notifying system of updated components
Aug 3 09:05:52 : TOTAL: Packages report 32 files, 32 actual files written
Aug 3 09:05:52 : Private/Total = (3.7MB, 62.8MB), Heap/Total = (2.0MB,
17.6MB), Regions(malloc, private) = (23, 24)
Aug 3 09:05:52 : It took 31.277272 seconds to successfully install
"NCDesk (Computer Skills Online Test), 1.1 - Fall 2005" (1 pkg(s))
Aug 3 09:05:52 : It took 1.014772 seconds to Configuring volume
"Macintosh HD" (dm prepare*disk)
Aug 3 09:05:52 : It took 0.858016 seconds to run preflight script for
NCDesk (Computer Skills Online Test), 1.1 - Fall 2005
Aug 3 09:05:52 : It took 0.422284 seconds to Install NCDesk (Computer
Skills Online Test), 1.1 - Fall 2005: 22 elements
Aug 3 09:05:52 : It took 0.409813 seconds to successfully Install
package NCDesk (Computer Skills Online Test), 1.1 - Fall 2005
Aug 3 09:05:52 : It took 0.129526 seconds to Assembling temporary
receipt
Aug 3 09:05:52 : It took 0.128699 seconds to Write files
Aug 3 09:05:52 : It took 0.120687 seconds to Assembling receipt
Aug 3 09:05:52 : It took 28.898067 seconds to run postflight script
for NCDesk (Computer Skills Online Test), 1.1 - Fall 2005
Aug 3 09:05:52 : It took 0.042162 seconds to Removing temporary
directory "/private/tmp/NCDesk.pkg.4263RbzWj"
Aug 3 09:05:52 : It took 0.021312 seconds to Finalize disk "Macintosh
HD" (dm finalize*disk)
Aug 3 09:05:52 : Aug 3 09:05:52 jill-hebeisens-powerbook-g4-17 :
Summary Information
Aug 3 09:05:52 : Type Elapsed time (sec)
Aug 3 09:05:52 : patch 0.000065
Aug 3 09:05:52 : script 29.756083
Aug 3 09:05:52 : zero 0.065578
Aug 3 09:05:52 : extract 0.128699
Aug 3 09:05:52 : config 0.028051
Aug 3 09:05:52 : receipt 0.250213
Aug 3 09:05:52 : disk 1.036112
Aug 3 09:05:52 : install 0.422284
Aug 3 09:05:52 : Aug 3 09:05:53 jill-hebeisens-powerbook-g4-17 :
Starting installation:
Aug 3 09:05:53 : Finalizing installation.
Aug 3 09:05:53 : Registering applications
Aug 3 09:05:53 : Registered /Applications/NCDesk.app.
Aug 3 09:05:53 : Optimizing system performance
Aug 3 09:05:57 : Private/Total = (3.8MB, 63.0MB), Heap/Total = (2.0MB,
17.6MB), Regions(malloc, private) = (23, 27)
Aug 3 09:05:57 : It took 3.935221 seconds to successfully End of
Install Jobs
Aug 3 09:05:57 : It took 3.866866 seconds to <IFPrebindElement: 0x684a370>
Aug 3 09:05:57 : It took 0.034120 seconds to Send Install Completed
notification "Finished install."
Aug 3 09:05:57 : Aug 3 09:05:57 jill-hebeisens-powerbook-g4-17 :
Summary Information
Aug 3 09:05:57 : Type Elapsed time (sec)
Aug 3 09:05:57 : Prebind 3.866866
Aug 3 09:05:57 : AppRegister 0.013937
Aug 3 09:05:57 : zero 0.054418
Aug 3 09:05:57 :
Stéphane Sudre wrote:
On mardi, août 2, 2005, at 09:30 PM, David A. Pegram wrote:
Greetings!
I'm new to creating installation packages for OS X. So far, I've
created a package that successfully installs the latest version of our
application in "/Applications". We wanted to add a preflight script
(Applescript) which removed older versions and old aliases from every
user's desktop. We also wanted to add a postflight script that would
create new aliases (to the latest version) on every user's desktop.
I've tried setting the PackageMaker configuration to use both Admin
and Root authentication.
Everything works except for the alias removal and creation. I believe
the scripts fail due to insufficient permissions. Is there anyway
around this or, are we trying to circumvent major security mechanisms?
What does the log say when you log the error from the script?
_______________________________________________
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