Uninstall while installing in MAC OS?




  • Avatar

    You can uninstall the OS X application the same way you do on Windows. You just have to call the bundle executable:

    <runProgram> <program>path/to/uninstall.app/Contents/MacOS/installbuilder.sh</program> <programArguments>--mode unattended</programArguments> </runProgram>

    The --mode unattended will run the uninstaller in unattended mode and not show any uninstallation GUI.

  • Avatar

    If the application does not have an installbuilder.sh (so it is not an InstallBuilder-generated installer), you will need to obtain the executable from the CFBundleExecutable property in its Info.plist, located under application.app/Contents/Info.plist, and use it instead. If you check one of your InstallBuilder installers you will see something like the below in that file:

    <plist version="1.0">                                                                                                                                                                                                                                                                                                                                                       
  • Avatar

    How can i do the same in ubuntu 32 and 64 bit machine..??

  • Avatar

    Thanks for your post.. It helped me a lot.. How can i do the same on Ubuntu 32 and 64 bit machines..??

  • Avatar

    Using the above logic i did the following

    My Intensions is to uninstall older version(2.3) and upgrade to new version ie 2.3.1

    The following code will uninstall version 2.3

    Uninstall old version(version2.3) <preinstallationactionlist> <runprogram> <program>${installDir}/${uninstallerName}.exe</program> <programarguments>--mode unattended</programarguments> <rulelist> <filetest> <path>${installDir}/${uninstallerName}.exe</path> <condition>exists</condition> </filetest> </rulelist> </runprogram> </preinstallationactionlist>

    At any point of time user clicks "CANCEL" older version will be lost. so i want to uninstall the older version only when he clicks finish.. after that i want to upgrade to new version i.e 2.3.1

    Is there any way to do this in BITROCK..??

Please sign in to leave a comment.