Package maker question...

Hi everyone!
I've got a question about doing an install with package maker. Everything is basically setup and running ok...but I noticed if I install a new version on top of an old version it will update the files of the same name but it will not just replace the entire app. For example version 1.0 has files A, B, C, D. And let's say version 2.0 has files A, B, E, F, G. The files that are the same (A, B) will be updated. The new files (F, G) will be added. But the old files that are no longer needed (C, D) will not be removed. So basically my question is how do you get the install of the new to completely overwrite the old?
Thanks in advance,
Reg
Note: I tried to work with the "Locator" feature but no matter what I did I was still not able to achieve the overwrite. Seems there must be something that I'm overlooking???

Hi Niel!
Thanks for the reply! If that's the way to do it is with a script then I know which route to go!
Reg...

Similar Messages

  • Package Maker, Installer and receipt names

    Hi all
    I'm a little confused about the receipts that the installer drops into Library/Receipts. For instance, if it installs a file called Fred.abc, then the receipt file is also simply called Fred.pkg.
    Now here's my question: what is to prevent a name clash? What if a completely different developer produces a completely independent project which also has a file named Fred dot something? Would the later Fred receipt overwrite the earlier one?
    I'm particularly confused because Package Maker actually asks for an organisation string, such as "uk.co.mycompany.myproject", yet never appears to use it! Surely an obvious thing would be for my Fred receipt to be called "uk.co.mycompany.myproject.Fred.pkg" which can be pretty much guaranteed never to clash with any other company's names.
    Can anyone shed any light on this?
    Thanks in advance
    Bob

    if you use your system as the template and that folder exist, doesn't Package Maker create that directory on the client if it doesn't exist?
    I know I've done this before but perhaps it was with a third party shareware package maker.

  • Package maker problems

    hi there i have a package maker issue that i am sure is either esily resolved because im overlooking something or unexplicaply dificult and i dont even reolise. now i am in no way schooled on how to use this software but common sense has allowed me to build an installer to install files to my desktop no problem. my problem arises when its time to install it on another user or on a diferent computer. because the destination folders i have specified are native to my environent and include my user in the filepath when i then put it on a diferent machine my user no longer exists and ofcourse the files do not end u in the corresponding folders. an example of a filepath i used would have been ' Macintosh HDD/Users/myuser/Desktop ' but the 'myuser' section of course is different on every machine so i gues my question is how do i set the destination path to work on any user on any machine? i tried /Users/User/Desktop and other combinations but like i said i dont realy know what im doing and its verry hard to find info on the subject.
    ultimately i want to send 2 files to the applications folder 1 to replace an old version and the other a seperate program
    then i want to add some component files to a plugins folder . seemed easy at first then i hit this bump in the road and iv been stuck ever since
    many thanks in advance for any help you can offer

    james fromcanterbury wrote:
    hehe thankyou for your quick response .
    i fear it will take me much more than a couple of weeks to master this however much i want it to come quickly.
    my next question is rarther embarassing and highlights how little i know . how do i make a sandbox directory do i use patchmaker or do i need to download sandbox or is it part of xcode?
    I was just using a generic term. The idea is that you need to setup a development area for installation that mirrors where you are installing. It is just a directory (of directories). It is important to keep it separate from your actual software you are building. Always copy things into the sandbox.
    The problem is Package Maker. It is one of Apple's worst programs. One of the things you have to do before installing is change ownership of the sandbox directory to root. That makes dealing with your development directory a royal hassle. It is best to script all parts of a Package Maker installation.
    also if you can point me in the direction of any literature on the subject i will be glad to read it!
    That would be a great thing to have. Alas, it doesn't exist. There is (may be) documentation inside Package Maker. Some of it may include the command-line tools. There is also a man page for the command-line tools themselves. Neither is actually correct, or, at least, neither was correct the last time I used them. Use them as suggestions rather than documenation. Package Maker is just really buggy and hard to use. No easy answers there. Plus, it changes frequently so my 2-3 year old knowledge of how it used to work probably isn't accurate anymore. It really is trial and error.
    In fact, in my last project, I just wrote a bootstrapping installer application. I included a preference pane inside the application bundle of the application. When the application started up, it checked for the preference pane, authenticated if required, and installed exactly what it needed. That was easier than using Package Maker.

  • Package Maker

    I might be on the completely wrong track here but I was wondering if Package Maker can help me do this sort of thing:
    You know how when you download software off the web or put a CD/DVD into your computer, when you open the image/CD often the software developer has created like a splash screen. Apple do it with their disks.
    I have an example below for Bare Bones' Yojimbo.
    Does anybody know how these are made and how they constrain the window to open at a certain size when you double click the dmg or disk?
    Please note that I have never used Package Maker.

    This has nothing to do with Package Maker.
    There are two ways to install software on MacOS X. You can use an installer (such as one created by Package Maker, among others) or you can use a drag-n-drop installation (as in your Yojimbo screenshot).
    Apple recommends using a drag-n-drop installation for applications. This makes the application easy to backup, reinstall, and uninstall. If you need to install files in multiple locations, you should follow Microsoft's example (yes, you read that right!) and have the application check for any needed files and re-install them if they are missing. An even better idea is to keep such files in the application bundle and use them from there.
    If you are installing system-level modification, such as kernel extensions, you may need to use Package Maker (or something else) to create a real installer. The user will have to enter an admin password to run the installer. You should provide an uninstaller in this case, which you'll have to cobble together yourself somehow.
    Another difference is that a Package Maker installer can be localized and can run in the user's native language. Drag-n-drop installations, such as your example, cannot be localized. The application itself can support multiple languages, but there is no way to get the Finder window to display in multiple languages because it just uses images.
    So, that is an overview. Now on to your specfic questions. To create a drag-n-drop installer like this, just create a new, empty disk image. Open the image in the Finder. Arrange the items on the disk image window the way you want them to appear, increase the icon size, for example. You'll also want a background image that displays (maybe) some installation text, (probably) and arrow, a logo, and maybe a pretty picture (a muted cog, as in this example). Put your images into a hidden folder on the disk image. Name it ".background" or something to make it hidden. Then, in the Finder, assign that image as the background (use Shift-⌘-G to get to that hidden folder). Finally, include a Unix link to the Applications folder (ln -s /Applications /Volumes/MyAppInstaller/Applications).
    The size, position, and layout of the Finder window you have open for that disk image is how the end use will see it. make sure your background is just slightly larger than the dimensions of your window so it displays nicely with no scrollbars. Once you have it the way you want, unmount the image.
    I recommend the shareware DropDMG for building these. It can take that disk image you just created, make it read-only, add a fancy icon to the mounted volume (using your application icon as a template), add a localized license agreement when mounting the disk image, and several other things. It is a well-spent $20.

  • Creating new folders with Package Maker during preinstall actions?

    I have figured out MOST of what I need to have a successful install package produced with Package Maker BUT... how do you create an empty folder? My application uses a few folders for archiving and scratch, but unless I add some text file to that path I can't figure out how to create the folder I need. I am only fluent in Applescript so I hope I can use that to create these folders but I will learn enough unix if need be. If it requires any other language to accomplish this task I guess I will have to go another route.
    Any ideas?

    It isn't part of PackageMaker at all. It is defined in "URL Types" in your application. See the source code to Bwana for a simple example.

  • How to prevent downgrading of the app in meta package using package versioning feature of package maker tool?

    Hi,
    Created  an installer i.e, meta package using package maker tool. I want  to prevent downgrading of the application or package on the target/installed volume. 
    Problem is, if there is a newer version of app and when I try to install any older version, then it does not throw any error message to the end user and replaces the existing newer version with the older version of app, which should not happen. But, if I check the package version using version comparison of Package  maker tool, that works fine with flat packages i.e, with the .pkg files. So, I need the solution for metapackages(.mpkg) and want to prevent downgrading of app for metapackages. I am not getting any solutions for this. Can someone guide me on this?
    Thanks for the help provided.
     

    Hi,
    Created  an installer i.e, meta package using package maker tool. I want  to prevent downgrading of the application or package on the target/installed volume. 
    Problem is, if there is a newer version of app and when I try to install any older version, then it does not throw any error message to the end user and replaces the existing newer version with the older version of app, which should not happen. But, if I check the package version using version comparison of Package  maker tool, that works fine with flat packages i.e, with the .pkg files. So, I need the solution for metapackages(.mpkg) and want to prevent downgrading of app for metapackages. I am not getting any solutions for this. Can someone guide me on this?
    Thanks for the help provided.
     

  • 10.4.7 PPC and "Package Maker"

    Just FYI - discovered this AM that none of my Package Maker projects open subsequent to installing 10.4.7 on a G4, and the app will not launch on its own either.
    The crash log reports a missing resource from PrivateFrameworks. I performed all the usual precautionary steps prior to and after the update. I'm dowloading the latest dev tools to install in hopes that this will resurrect it.

    Just an update, in case anyone else has the same problem: the re-installation (i.e., updating to the latest dev tools) has restored normalcy.

  • Including license check in Package Maker

    hi there,
    I need to include a license evaluation process in package maker application. That is, if an user enters an valid unlock key or provides a valid license file in the package maker installer, I need to install the specific .pkg file in the user's machine. Else, I need to prompt the user that "Invalid key entered, please enter a valid unlock key or license file". This is same as license validation process in windows environment. But searched a lot about including this process in package maker, couldn't find a way to make it here.
    Is there some other installers for Mac could do this process or if package maker can, could you please explain the steps in detail or share any online documentation explaining this process. That will really help me a lot for coming to a conclusion.
    many thanks.
    - Balaji

    hi,
    I've created and included sample AppleScripts in "Iceberg installer" in the below events.
    1. Preflight
    2. Preinstall
    3. Preupgrade
    4. Postinstall
    5. Postupgrade
    6. Posflight
    But the sample scripts were not even executed single time in any of the above events. Could you please explain when, where and how will be the AppleScripts were executed in an installer package ?
    thanks,
    -Balaji

  • HT1491 I created my account im my iphone, and now I´m trying to buy with my ipad and the site make questions....so I want to know where do I can find this questions in the site...

    I created my account im my iphone, and now I´m trying to buy with my ipad and the site make questions....so I want to know where do I can find this questions in the site...

    I am very happy to report that my server connection tech, which I called via landline, informed me to : 1. Open Tools 2. Scan down to Clear Recent History 3. Delete All. That was it! Unbelievable! Six hours of searching through the Windows catagories. I checked the results on an internet site, and viola! It was gone! Mozilla Firefox seems to remember the usernames and passwords irregardless of the option window that asks if you if want it to remember the user and password. I finally got in touch with my friend and he said he did not answer yes to the window, even though he was aware of it. No damage. I surely do appreciate everyones' concern in this, now what seems to be, a very simple solution. Cudos to Firefox! Thank-you! P.S. I now have to enter my information at the beginning of any password protected sites...no harm done! My friend is now condemned to the 'user account' site! lol...

  • Mac - package maker command line arguments

    Hi , I am trying with package maker command line to create a package. What option need to  set in command line to avoid Admin/Password while installing package created by Package maker. The same thing we can do using GUI by checking option "Require Admin Auth.." in configuratoin TAB.
    Your quick reply will be appreciated.

    See:
    http://javafx-jira.kenai.com/browse/RT-24993
    "Native packaging: native launcher should pass command line parameters to the app"
    fixed for jdk7u10
    jdk7u10 is downloadable from here:
    http://jdk7.java.net/download.html
    It may take a week or two for the fix to propagate into there.

  • Help with Package Maker and System Image Utility

    Hi all....
    Im trying to use package maker and System Image utility to create a netinstall image.  I dont know if im creating the package wrong, or if it has something to do with siu... but when I install the image from the server only the OS installs... not the packages.  The packages just get copied to the HD.
    Right now im just working on trying to get office to install with the OS...
    Any advice would be greatly appreciated...
    Thanks...

    Just realized that you said the following:
    The packages just get copied to the HD.
    It sounds like you've made a installer package that's installing the installer packages.
    If you simply double click the package you've created and install it, does it do the same thing? If so, then that's what you've done.

  • Install package maker

    Hello everyone,
    I've a Mac OS 10.6 and I want to use Package Maker to generate a setup for my application but I don't know how.  XCode is already installed on my machine.
    Can anyone tell me how to do ?
    Many Thanks in advance.
    Best regards.

    if you use your system as the template and that folder exist, doesn't Package Maker create that directory on the client if it doesn't exist?
    I know I've done this before but perhaps it was with a third party shareware package maker.

  • Package Maker no contents

    I built an installer with package maker but it says there is nothing to install. Only thing I can think of is this weird admin permission dialog pops up to change permissions when building. It says I need to be the admin to which I am. I set a root pw in Netinfo and then tried to build the installer as root but still had the same issue.
    Any ideas?
    ... Ok, I just got it to work without the error message. Only problem it didn't install anything.
    Message was edited by: Doug Bassett

    First of all, the GUI version of Package Maker is just useless. The command-line version is what you want to use.
    Next, it isn't you that needs to be root, it is your software. You have to do a "chmod -R root:admin " on the files you want to install. It is a very good idea to copy those files to a temporary area, chmod on that temporary area, build the installer, then delete that temporary area. You don't want root-owned files in your CVS.

  • Deleting files when installing application using package maker

    Hello,
    I have made package maker for my application. It is made such that it will be installed in Application directory.
    I want to delete directory at ~/Library/Application Support/TestApp.
    This is necessary for me, because when user install my application i need to remove all the files that my application has created.
    So, how can i use package maker to remove this files and folders if there exist?
    Thanks
    xmax

    Hi xmax
    I'm not sure I understand your meaning.
    When you drag a file (that you're going to install) into the left hand side of package maker, more options open up, including the ability to add pre and post flight scripts.
    To change what your user will see during the installation process, run Package Maker and click on Edit Interface.
    Bob

  • Windows 8.1 official offline upgrade package & GPO question related to Metro & UAC

    Hello!
    I am testing pre-deployment of Windows 8.1 in our 2008R2 domain. So far only my workstation is upgraded to win8x64 (from win7x64) and I am assessing if all of our LOB aps and servers will work fine with it. A few questions
    1. We use workstations coming with OEM win8 license (all currently running win7 downgrade). I noticed that oficially there is no win8.1 offline upgrade package! Does that mean that Microsoft officially wants people to sing into Windows Store with a Microsoft
    account to perform online upgrade with administrative privileges? That's pretty awkward ...
    I figured that I could use win 8.1 installer ISO/UFD that I created in past (for home computer actually), but am not sure if that works out with our win8 OEM license keys tied to BIOS/UEFI on each desktop computer.
    Was actually expecting an 8.1 Service Pack package that I could publish to WSUS, so it could take care of upgrade on win8 computers, but there is no such thing ... and no official package for 8.1 offline deployment either ... weird ...
    Currently I am actually about to upgrade my own/test workstation to 8.1 (from 8.0, using Windows Store online), then sysprep it and create a reference WIM image and see if I can deploy 8.1 thick image (with all updates and company apps installed) this way
    via WDS. anybody tested if it works this way? any gotchas?
    2. win8 GPOs
    Can somebody enlighten me where in Group Policies I can find a setting to re-assign ALL file/media extensions (e.g. jpg, tiff, png, bmp, mp4, WMV, etc.) back to Desktop applications instead of the horrible Metro UI equivalents?
    We are actually about to bypass Metro UI completely on each computer so it boots straight to desktop and all file upon double-click must open an application within Desktop (no Metro UI for end users).
    I know how to do this manually one by one via Group Preferences, but am asking if there is some specific GPO ADMX setting that would replace Metro UI apps with Desktop application in any and all file associations.
    Personally I see no point in using the clunky Metro UI without a touchscreen.
    3. is UAC enabled required for Windows Store to work?
    Seems like it needs at least the Low security setting, so the Windows Store and Metro UI stays operational. no workaround for that for disabled UAC environment?
    Just asking, it's not a big deal, people can learn to live with UAC, but am curious if that's by design.
    Thanks for answers!

    Hi,
    1. For upgrading to Win8.1, please refer the following link:
    http://windows.microsoft.com/en-in/windows-8/update-from-windows-8-tutorial  As I know, Win8 activated using KMS, cannot upgrade to Win8.1
    2. No, there is no such GPO settings added into Admin template. You will have to work around this using GPP...
    3. There is no way to bypass UAC and allow Windows Store at one time. UAC is headache since Vista times and we have to live with the Protection :) Believe me, it does good to PC safety.
    Regards, Brian
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    thanks for the answers!
    Yeah, UAC is a bit of a headache especially with legacy software. When deploying our Win7 domain clients however I got away by simply disabling it to make it easier for all users coming straight from XP environment.
    for future win8.1 deployments however, I will set the UAC level to Low and keep it there, so modern apps and winstore stays operational if anybody wanted it or needed it. not  a big deal, plus an added security layer, I agree with that.
    As per default win8 file extension associations ... well, that's a bummer, and yeah, the GPP is what I had in mind to work around that manually.
    I am running on upgraded win8.1 right now and so far I like it more or less in work environment, after adjustments that is :)
    My only problem is related to win 8.1 clean installation and imaging and deployment however, wanted to use Lite Touch via WDS for w8.1, but problem is that I have no image of win8.1 that can activate with OEM licenses tied to BIOS.
    Sysprep doesn't work on upgraded 8.1 (from 8.0), so I can't image that with generalization and on other hand the only generalized image I can take is from bare win 8.0 without the 8.1 upgrade. What I mean is that our computer vendor (HP) switched to OEM
    win8 licenses tied to UEFI/BIOS (no more case stickers) and that doesn't activate when I try to clean install 8.1 even though it should, but the build ID string in BIOS must be changed ... need to open a case with HP to work it out, I am sure it's still possible
    to achieve even without volume licensing.
    We use a Basic Infrastructure model so far with retail+OEM keys (no KMS so far but it's in plans if Office deployment plans get approved by CFO). I thought for 8.1 actually it was a good idea to implement Standardized Infrastructure with thick images, as
    manual upgrade to win 8.1 from win 8.0 is painful.

Maybe you are looking for