Dasurfas Posted May 22, 2006 Share Posted May 22, 2006 Hi. I can't seem to find a solution with this problem. I have made some packages with PackageMaker, but I can only get it working with this output directory: /gaest/library What I need is a script that allows ALL users to extract it into their own library, like if my username was dasurfas, then it would put the files into /dasurfas/library Any clue how? Thanks Link to comment https://www.insanelymac.com/forum/topic/18022-packagemaker-script-for-user/ Share on other sites More sharing options...
Swad Posted May 23, 2006 Share Posted May 23, 2006 Dasurfas- Welcome to the forum! I'm sure someone can help... Link to comment https://www.insanelymac.com/forum/topic/18022-packagemaker-script-for-user/#findComment-117981 Share on other sites More sharing options...
John the Geek Posted May 23, 2006 Share Posted May 23, 2006 Hi. I can't seem to find a solution with this problem. I have made some packages with PackageMaker, but I can only get it working with this output directory: /gaest/library What I need is a script that allows ALL users to extract it into their own library, like if my username was dasurfas, then it would put the files into /dasurfas/library Any clue how? Thanks PackageMaker was designed to NEVER enter the users directory because Apple does not want you installing apps for 1 user only. What you have to do is write a Postflight shell script to copy your files from your resource folder inside the package to the proper place in the user's home folder. I'll look around and see if I can't get you an example. I do know that you write the path like so: "/Users/$USER/Library/Preferences/Pref.plist" so you don't have to know the user's short username. =) Link to comment https://www.insanelymac.com/forum/topic/18022-packagemaker-script-for-user/#findComment-118028 Share on other sites More sharing options...
Dasurfas Posted May 23, 2006 Author Share Posted May 23, 2006 Hi, great I'll try that, thanks Kinda hard to figure out how to do it right.. - kindly Link to comment https://www.insanelymac.com/forum/topic/18022-packagemaker-script-for-user/#findComment-118041 Share on other sites More sharing options...
Dasurfas Posted May 24, 2006 Author Share Posted May 24, 2006 Hmm didn't work, unfortunately.. Is there anywhere i can download postflight scripts? - Kindly Link to comment https://www.insanelymac.com/forum/topic/18022-packagemaker-script-for-user/#findComment-118654 Share on other sites More sharing options...
John the Geek Posted May 24, 2006 Share Posted May 24, 2006 Hmm didn't work, unfortunately.. Is there anywhere i can download postflight scripts? - Kindly This walkthrough is a little old, but helpful. =) Link to comment https://www.insanelymac.com/forum/topic/18022-packagemaker-script-for-user/#findComment-118674 Share on other sites More sharing options...
Dasurfas Posted May 24, 2006 Author Share Posted May 24, 2006 Is there a link to the walkthrough? I can't seem to find it, but then again.. I might be a bit slow Link to comment https://www.insanelymac.com/forum/topic/18022-packagemaker-script-for-user/#findComment-119079 Share on other sites More sharing options...
John the Geek Posted May 24, 2006 Share Posted May 24, 2006 Is there a link to the walkthrough? I can't seem to find it, but then again.. I might be a bit slow Oh duh, I am such a retard. I never pasted it in... Ok, here's a general tutorial: http://developer.apple.com/documentation/D...ng_package.html And here's a bit more specifics on scripts, with examples: http://developer.apple.com/documentation/D...0001945-TPXREF8 Not sure why they echo everything. I never do. =) Link to comment https://www.insanelymac.com/forum/topic/18022-packagemaker-script-for-user/#findComment-119084 Share on other sites More sharing options...
Dasurfas Posted May 26, 2006 Author Share Posted May 26, 2006 hehe Thank a lot, I really appreciate the help - Kindly Link to comment https://www.insanelymac.com/forum/topic/18022-packagemaker-script-for-user/#findComment-119957 Share on other sites More sharing options...
Recommended Posts