Packagemaker Problem

Hi I am creating installer for mac with Package maker. I need to create Alias after the instalation. So added     ~ /Desktop to Alias path. But its not creating Alias File on Desktop. But i changed it to System Drive it works. any Tips ?
Thanks in Advanced
LH

It would be best to ask the user if they wanted to have icons created on the desktop or in the Dock. To do that, it would be best to include an AppleScript that runs in the postflight phase. In the Applescript, you can more easily access the user's desktop and the Dock and interace with the user to see if they want to do that. While you are running in the PackageMaker context, such things are much more difficult. Plus, the user gets really annoyed that you didn't ask first.
It may be possible to do all of this entirely from within PackageMaker, but I can guarantee it would be much more difficult that way. All things are more difficult in PackageMaker. I suggest not even bothering. It is a lot of work, could potentially delete the user's Desktop if you aren't careful, has little value added, and will likely serve only to annoy people.

Similar Messages

  • Packagemaker not truly replacing App bundle

    I have a Packagemaker problem. It relates to the contents of the Frameworks folder.
    I have an app, and it has a certain amount of files in the Frameworks folder in the bundle. I have a installer built with Packagemaker that is intended to update the app. There's nothing funny about it, it's just a common install script with no additions or anything.
    Here's the problem: I was expecting that if the App exists (the App being a bundle like all Mac apps), PM just replaces it with the new one. It doesn't seem to though, it seems to replace every FILE that is the same but if there are any files within the App bundle that PM isn't updating, it just leaves them there and doesn't delete them. It's a merge really.
    Of course, I sort of expect PM to DELETE the App bundle first and replace the whole thing. But it doesn't.
    This causes problems for apps. I have a current case where an old App (not that old, it was built 2 days ago) has 47 files in the Frameworks folder. The updater also has 47 files to "put in" the Frameworks folder, but 13 of them are differently named. So that adds 13 files to the Frameworks folder.
    In this case, my app now bombs, crashing on start up. You can tell by the crash log that it's choking on what it reads out of Frameworks. Upon inspection of the Frameworks folder, I see the 13 older files because they are dated as older. If I delete those files, the app starts up fine.
    How do you get PM to truly REPLACE an App?

    A pre-or-post-flight script?

  • PackageMaker localization problem

    Hi,
    I am creating .pkg for my application using PackageMaker.
    I am providing support for 7 langauage English, French, German, Italian, Korean, Russian,Spanish.
    In Edit Interface, i am using abbrevation : en, fr, de, it, ko, ru and es fro these langauages.
    But when i am trying to install the application, in License page, when i change the language in drop down menu, except for Russian and Korean, for all language buttons(Print, Save, Go Back, Continue) does not change to that language.
    Does any one know how to solve this problem?
    Thanks

    Hi,
    I am creating .pkg for my application using PackageMaker.
    I am providing support for 7 langauage English, French, German, Italian, Korean, Russian,Spanish.
    In Edit Interface, i am using abbrevation : en, fr, de, it, ko, ru and es fro these langauages.
    But when i am trying to install the application, in License page, when i change the language in drop down menu, except for Russian and Korean, for all language buttons(Print, Save, Go Back, Continue) does not change to that language.
    Does any one know how to solve this problem?
    Thanks

  • Packagemaker language problem

    Hi,
    I have created a installer for the application using PackageMaker.
    Installer provide support for different langauge.
    But during installation, i want to install a file based on the system language.
    How do i do it? How can i get the system langauge?
    Thanks

    Hello,
    You have to use "Font Subsetting" or "Font Embedding" :
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_pdf.htm#i1013618
    Regards

  • PackageMaker (Simple problem I'm sure)

    Hi everyone -
    Getting my feet wet playing around with PackageMaker, and there's one thing that doesn't make sense to me. How do you install to the "Users" directory without knowing the user's name? I can select a content piece in the left column, and in the right I can choose between an absolute or relative path to the destination (which is a folder inside /Users/[username]/), but it's using my username. How can this be dynamically written?
    Message was edited by: domineydesign
    Message was edited by: domineydesign

    The PackageMaker UI is a complete mystery to me. Somehow, with version 3.0.1, they have managed to take a difficult to use product and make it even worse. So, I can't really help with the User Interface.
    If you use the command line version, it goes from incomprehensible to only virtually unusable. On the command line, specify "--domain user". The man page says to use "--domain home" but that is wrong. On the command line, you can specifiy the root and the user domain and the software should be installed in the user's home directory. If you successfully get it to use the user domain, it shouldn't ask for an admin password. It will require the user to logout when the installer finishes. There is no way around that.
    You can specificy "--domain user --domain system" and you can choose to "Install for all users of this machine" or "Install just for me". Regardless of the option you choose, you will have to enter an admin password. There is no way around that. At least you won't have to log out.
    Unfortunately, it is not a simple answer. Feel free to read the installer-dev Apple mailing list. Those people know far more about PackageMaker than I do and they have no idea how to use it.
    I'm now writing my own installer application. Good luck!

  • PackageMaker Install requirement problem

    Hi I am trying to use the File exists on System. I want to check to see if a file exists in a location
    in /Users/myusername/Library/... The problem is I have not found a way in using the global variable for the username. Since this check will need to be done before the software install a new application in the /Applications folder . How can I specify a generic global to point to the user trying to install?
    I have tried '~' , $HOME and variations but no success. Does anyone have the solution. this file I am looking for was installed by another software package so it can not be changed.
    Thanks

    inNH wrote:
    Hi I am trying to use the File exists on System. I want to check to see if a file exists in a location
    in /Users/myusername/Library/... The problem is I have not found a way in using the global variable for the username. Since this check will need to be done before the software install a new application in the /Applications folder . How can I specify a generic global to point to the user trying to install? I have tried '~' , $HOME and variations but no success.
    You can do that with a shell script instead. $HOME should work fine there.
    this file I am looking for was installed by another software package so it can not be changed.
    You are running as root, you can change anything
    However, your logic looks suspicious. If you are checking for the existence of another application, looking in the user's library folder is not the right way to accomplish that. They user could have removed the application, but not the associated user files. The application could be properly installed, but this could be a new account or the user could have deleted those files. If you want to check for an application, look for the application itself. That should solve the whole problem.

  • Reinstalled Xcode Problems trashing PackageMaker

    I recently re-installed XCode because I had issue with it running.
    It moved the old files to the trash. Most of the files (developer folder) emptied out of trash with no issues BUT PageMaker.
    It does not seem to trash that file. Can someone help me out?
    Thanks,
    Kevin

    Oh yea it says that PageMaker is in use but I cannot see that it is on and I rebooted several times.
    Thanks,
    Kevin

  • Comparisson to create PackageMaker installer

    What would be the best way to capture the state of files on a Mac and then compare it to the state of files on a Mac after running several software installers in order to use PackageMaker to make a single installer? Maybe I'm a little out of my league here, but we've just spent two months upgrading 150 people to Mac OS X 10.4.x from Mac OS 9. We have 100 people left to upgrade before the end of the month (yes, it may not be possible). Of course, NOW it turns out that our image is missing several key parts that will need to be installed on each of the previously upgraded workstations. I can make a new image, that's not a problem. But, if I make a new image, is there a way to compare it to the previous image (a "diff" command in the Terminal?) and build a list of changes that can be used to set-up a PackageMaker installer? I would really like to be able to push out a single package using Apple Remote Desktop...
    -Doug

    The department has decided to upgrade from FileMaker Pro 5.5 to version 8. The version 8 installer is NOT a standard package and cannot be installed/distributed by Apple Remote Desktop. Also, there is already an update to 8.0.2 that is actually BIGGER than the original installer and requires 8.0 to be installed first (and is ALSO not a standard package file). So, I need capture the state of my workstation, install FileMaker Pro 8 and then the 8.0.2 update and then attempt to create an installer of my own that I can actually use Apple Remote Desktop to push out to everyone else. So, yes, it seems I will have to capture packages and their contents as well as individual files as well as some, potentially, invisible files that contain information, for example, about the registration/serialization of FileMaker Pro 8. Neither the main installer nor the 8.0.2 update create a receipt file. Thanks!
    -Doug

  • Pkg's made by PackageMaker from Xcode4.2 stopped working after Mountain Lion 10.8.1 upgrade!

    We have some pkg's that used to install fine across Snow Leopard, Lion and Mountain Lion.
    Those pkg's were made from PackageMaker that came with Xcode4.2.
    Since last week's Mountain Lion 10.8.1 upgrade, the pkg's preflight/postflight scripts stopped working
    on Mountain Lion machines, but still work with Lion and Snow Leopard.
    The current workaround we use is to produce the pkg using PackageMaker that comes from Xcode4.4 auxiliary tools.
    These pkg's work fine on all mentioned OS X.
    I think this should be either a bug in 10.8.1 upgrade or a change of policy.
    Can someone reproduce and clarify?
    Thanks!

    You are not alone!!
    Same problem with Plantronics.
    I just bought their Audio 648 Stereo USB Headset and have exactly the same issue you mention at the outset:
    Essentially, while my [Plantronics Audio 648] Headset is recognized in the list of devices in System Preferences > Sound, it doesn't do anything in terms of outputting or inputting audio
    So Apple, what are you going to do?...
    A lot of third party accessory manufacturers must be getting quite frustrated at the numer of complaints they get from Mac users, when it seems its the Mac OS which is to blame...

  • PackageMaker Metapackages Command Line

    Hi everyone,
    I'm trying to create a .pkg via PackageMaker command-line. I'm using 3.0.4 PackageMaker on SnowLeopard. My goal is to create a sort of an "online installer" via command line (since it will be an automatically generated installer).
    I have "OnlineInstaller.pmdoc" created prevously with the PM's GUI which works fine. It includes 2 files (both ponting to a remote URL for the "Package Location" config option), some pre-install & post-install scripts, postinstall Actions and some validations such as OSX, java version, memory on System, etc.
    So PackageMaker creates correctly the 3 files with the GUI:
    1.- OnlineInstaller.pkg (the one that starts the intallation process)
    2.- Content.pkg
    3.- ThirdPartyComponents.pkg.
    They work fine when I created them by clicking "Build" on the GUI.
    The problem is when I try to create the packages by command line, PackageMaker generates some /tmp/pkmXXXX folder with the correct packages but deletes it immediatly, the command I'm running is:
    /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker --doc OnlineInstaller.pmdoc --verbose
    I've also tried using "-build" parameter but always prompts "ERROR: No packages to build." Some other combination of parameters prompted nothing or created nothing.
    Please!!! any help or doc link will be appreciated.
    Regards !!
    Ismael
    Message was edited by: ismamon

    Unfortunately, with PackageMaker, there often isn't a good answer. In many cases, you just have to keep trying different methods until you find something that works. Plus, PackageMaker likes to stop working if you upgrade the OS or Xcode. The "--doc" parameter is very handy, but it just may not work. Try specifying all the parts on the command line. I think it is 6 or 7 parameters. I can't tell you exactly what they are because the last time I did that was some time ago and the interface has changed.
    I have found it easier to write bootstrapping applications than to use PackageMaker.

  • Packagemaker 3.0.3. get user's installation preferences

    Hi all,
    i have a small problem that seems to be caused by my lack of knowledge on the issue. Basically, what I am trying to do is to create an installer for my application with the PackageMaker.app. I am stuck on one place though, how can I 'get' a user's input during the installation and feed it to a script which is getting started after the install.
    Example: I give the user 4 language choices during the installation - german, japanese, french and english. The user chooses one of those and according to this choice my post-install script has to do different things.
    Does anybody know how can I achieve such behaivior?
    Thanks in advance.
    Regards
    artOf...

    I am still struggling with the postinstall script... The problem is the PackageMaker does not give ANY language information to my script i tried many different things for example:
    #!/bin/sh
    /usr/bin/env
    echo "arg0: '"$0"'"
    echo "arg1: '"$1"'"
    echo "arg2: '"$2"'"
    echo "arg3: '"$3"'"
    echo "arg4: '"$4"'"
    echo "arg5: '"$5"'"
    echo "arg6: '"$6"'"
    echo "arg7: '"$7"'"
    echo "arg8: '"$8"'"
    echo "pkgpath: $PACKAGE_PATH"
    echo "language: $LANG"
    echo "messageLanguage: $LC_MESSAGE"
    echo "environment: $ENV"
    The output is:
    ...imac /private/tmp/scripts.eDmN/./postinstall[1503]: arg0: '/private/tmp/scripts.eDmN/./postinstall'
    ...imac /private/tmp/scripts.eDmN/./postinstall[1503]: arg1: '/Developer/Projects/TS-S2/code/trunk/Mac/TS-S2/Setup/BETA/MyApplication - Installer.pkg'
    ...imac /private/tmp/scripts.eDmN/./postinstall[1503]: arg2: '/Applications'
    ...imac /private/tmp/scripts.eDmN/./postinstall[1503]: arg3: '/'
    ...imac /private/tmp/scripts.eDmN/./postinstall[1503]: arg4: 'upgrade'
    ...imac /private/tmp/scripts.eDmN/./postinstall[1503]: arg5: ''
    ...imac /private/tmp/scripts.eDmN/./postinstall[1503]: arg6: ''
    ...imac /private/tmp/scripts.eDmN/./postinstall[1503]: arg7: ''
    ...imac /private/tmp/scripts.eDmN/./postinstall[1503]: arg8: ''
    ...imac /private/tmp/scripts.eDmN/./postinstall[1503]: pkgpath:
    ...imac /private/tmp/scripts.eDmN/./postinstall[1503]: language:
    ...imac /private/tmp/scripts.eDmN/./postinstall[1503]: messageLanguage:
    ...imac /private/tmp/scripts.eDmN/./postinstall[1503]: environment:
    Where you can see that more then half of the variables are empty. Also the '/usr/bin/env' outputs nothing related to language or localization... I think, I set the localization properly in the packageMaker interface so the problem should be somewhere in the script. I am not experienced at all with writing scripts so I am guessing that is the problem. Any help will be appreciated. Thanks!
    -artOf...

  • PackageMaker scripts issue

    I have an installer that needs to drop a file within an already installed bundle. Using the GUI PackageMaker I drop the file at the level of the bundle. I then use a script to move my file within the bundle and assign the proper rights. If I run the installer as an admin everything is fine. As a standard user, the file is zero bytes once moved within the bundle. PackageMaker is set to require admin authorization. I also have a preinstall/preupgrade script removing the file if it already is in the bundle. This fails as the standard user. The weird thing is the PackageMaker claims the install was successful even though the scripts have issues.
    I am assuming that PackageMaker cannot have a destination be within a bundle. Is there another install product that would be better suited for this without the need for scripting?
    Message was edited by: Aikidokatech
    Message was edited by: Aikidokatech

    andyboutte wrote:
    packagemacker has been very inconsistent for me with owner and group.
    PackageMaker is very consistent with owner and group. It is always root:admin.
    I have had to start setting the owner and group in my post flight script. Is anybody else having these problems? are we doing something wrong or is it packagemaker?
    PackageMaker is certainly a pain, but if you are setting your own permissions, then you probably aren't doing something correctly.

  • Packagemaker 3.0.3 Help

    Hello,
    Im trying to compile a filmmaker stand alone app in packagemaker to use as an installer. I'm currently getting an error message while archiving these files. The message I get is "could not create contents directory for StoryO.pkg" and the error message "could not create archive.bom." What's interesting is that the StoryO file has no contents folder. Please see the picture below. I'm isntalling from my local machine and having pagemaker create file path applications/StoryO.
    I'm out of ideas.
    Thanks for any input
    http://i69.photobucket.com/albums/i77/spitstix/Picture1.png

    I created a new "Standard" account on my machine and was able to run cmu with no problems when I connected via ssh from my login.
    I changed the script to the following and rebuilt and re-installed:
    #!/bin/bash
    /usr/bin/env > "/Applications/Logs/env.txt"
    /usr/bin/cmu > "/Applications/Logs/cmu.txt"
    exit 0
    The env.txt file was populated with the Installers env variables (see below); the cmu text file was created but was empty.
    Installer env (I've replaced the name of my app):
    INSTALLER_TEMP=/private/tmp/PKInstallSandbox.frwZLG/tmp
    DSTVOLUME=/
    TMPDIR=/private/tmp/PKInstallSandbox.frwZLG/tmp
    DSTROOT=/Applications/xyz License Container
    DYLDNO_FIXPREBINDING=YES
    USER=MarkC
    COMMAND_MODE=unix2003
    SCRIPT_NAME=postinstall
    _PARENT_INSTALLSANDBOX=/var/folders/zz/zzzivhrRnAmviuee+++++++++/Cleanup At Startup/PKInstallSandbox-tmp
    SHAREDINSTALLERTEMP=/var/folders/zz/zzzivhrRnAmviuee+++++++++/Cleanup At Startup/PKInstallSandbox-shared-tmp
    INSTALLERSECURETEMP=/var/folders/zz/zzzivhrRnAmviuee+++++++++/Cleanup At Startup/PKInstallSandbox-tmp/Secure_Temp.639592538
    PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec
    PWD=/private/tmp/PKInstallSandbox.frwZLG/Scripts/com.xyz.xyz.xyz.pkg.bczx0r
    INSTALLPKG_SESSIONID=com.xyz.xyz.xyz.pkg
    PACKAGE_PATH=/Users/MarkC/xyz/Installer/Installer/xyz.pkg
    SHLVL=1
    HOME=/Users/MarkC
    _=/usr/bin/env
    Thanks,
    Mark.

  • PackageMaker postflight script to reindex Spotlight?

    Hello,
    I've put together a PackageMaker installer that installs a Spotlight plugin, and runs a postflight script that includes a command based on this one:
    /usr/bin/mdimport -r /Library/Spotlight/Yourplug-in
    which is taken from Apple's support page here:
    http://www.apple.com/downloads/macosx/submit/installers.html
    The trouble is that the installer log tells me this:
    ./postflight: mdimport will not import on behalf of root user. Exiting.
    How can I fix this so that the mdimport command runs without problems?
    Thanks for any help

    That was exactly right. I changed the command so that it reads
    sudo -u $USER /usr/bin/mdimport -r /Library/Spotlight/Yourplug-in
    and the problem didn't occur. Thank you!

  • Help with PackageMaker

    I need to install three plugins into the users home directory but can't seem to get this accomplished.
    I want the plugins to land here: Users/UserName/Library/Application Support/FileMaker/Extensions/
    where UserName is discovered on the users machine.
    I selected 'User home directory' in PackageMaker and deselected Volume by user and System volume but the files keep landing here:
    MacintoshHD/Library/Application Support/FileMaker/Extensions/
    In the configuration I am entering the Destination as:
    /Library/Application Support/FileMaker/Extensions/
    I thought that selecting the 'User home directory' would concatenate their home directory path to the beginning of the destination path I entered. No go.
    If you could please help this rookie out.
    Thanks
    Doug

    Package Maker is a frustrating program! I recall spending many hours juggling with all the options to a package working just so.
    I'm not sure I can provide you with a direct answer to your particular problem, but when all else fails you can write a post flight script to copy the files you want to install from the folder that package maker dumps them, to the folder you want them to be in.
    Your post flight script file would look something like this:
    #!/bin/bash
    \# Running apps postflight script
    \# Remove any previously installed files from destination folder
    cd ~/Library/Application Support/FileMaker/Extensions/
    touch firstfilename
    rm firstfilename
    ....etc for other two files....
    \# Move files into correct destination folder
    cd /Library/Application Support/FileMaker/Extensions/
    mv firstfilename ~/Library/Application Support/FileMaker/Extensions/firstfilename
    ....etc for other two files....
    exit
    When you've got it just right, then take my advice and write yourself a memo giving yourself detailed, step by step instructions in how to set it all up again.
    Bob
    Message was edited by: Bob Lang1

Maybe you are looking for

  • DEVOLUÇÃO DE EXPORTAÇÃO - CFOP 3201 - GRC VALIDA DADOS DI.

    Boa tarde a todos! Estamos em um projeto de NFE XML 2.00 e nos deparamos com o seguinte erro: Ao emitirmos um NF-e de devolução da mercadoria que se encontrava no Porto (devolução de exportação - CFOP 3201), a validação do monitor GRC informa que é n

  • Switch conditionals

    Hello all i'm working on a homework assignment in where we created a match game.  It's up to me to figure out how to tell the action script which difficulty the user play the game at.  There are 3 buttons easy, mediym, hard.  Each one lays out an inc

  • WLC 5508 7.4.100.0 HA standby reboot loop

    Hi..... We have been running two 5508 WLCs in HA mode for a while now connecting 25 2602 APs. We disconnected the heartbeat utp cbale to change the positision of the standby WLC in the rack. We did not power it off. After we plugged back the Heartbea

  • Help Needed immediately

    Hi, I have an text table /bic/tmaterial and an internal table ITAB. In a function module, i need to get the material numbers of /bic/tmaterial which are not present in ITAB-material(material is a field in internal table ITAB) and for those material n

  • Text builds in KN3

    I am trying to attain a number of build effects in Keynote. Basically what I'm trying to do is very similar to this clip http://www1.us.dell.com/content/products/category.aspx/xpsnb2?c=us&cs=19&l=en&s= dhs (I know its Dell, and doesn't even look that