Re: Temp Folder
Re: Temp Folder
- Subject: Re: Temp Folder
- From: ramosj <email@hidden>
- Date: Thu, 20 Sep 2007 20:56:51 -0400
I just had to do this for pushing out a screensaver plist to my users. I set this up as a postinstall script in my package. You will need to change the code to have your dir paths and filenames, but it should give you a idea of one way of doing it.
(staging is the dir that the package installed my plist)
#! /bin/sh
name=$USER
computerid=`/sbin/ifconfig en0 | awk '/ether/ { gsub(":", ""); print $2 }'`
rm /Users/"$name"/Library/Preferences/ByHost/com.apple.screensaver."$computerid".plist
cp /staging/com.apple.screensaver.plist /Users/"$name"/Library/Preferences/ByHost/com.apple.screensaver."$computerid".plist
chown $USER: /Users/"$name"/Library/Preferences/ByHost/com.apple.screensaver."$computerid".plist
chmod 755 /Users/"$name"//Library/Preferences/ByHost/com.apple.screensaver."$computerid".plist
On 9/20/07, Jack Repenning
<email@hidden> wrote:
On Sep 20, 2007, at 2:07 PM, Jim Brown wrote:
Is it possible with Packagemaker to specify the logged in user's temp folder as the destination for the payload?
If so, how is it identified and set in the packagemaker gui?
This would be a special case of "installing into the user's home directory," which has an answer, though quite a bit uglier than you might have hoped:
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (
This email sent to email@hidden
_______________________________________________
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