Hello,

How do you uninstall an app when installing? When we install a program the installer needs to remove another program on the MAC OS?

asked 29 Apr '13, 18:30

Codename%20K's gravatar image

Codename K
236556170
accept rate: 50%


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">                                                                                                                                                                                                                                                                                                                                                       
<dict>                                                                                                                                                                                                                                                                                                                                                                      
         ...                                                                                                                                                                                                                                                                                                                       
        <key>CFBundleExecutable</key>                                                                                                                                                                                                                                                                                                                                       
        <string>installbuilder.sh</string> 
         ...
</dict>
</plist>
link

answered 03 May '13, 03:29

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Thanks for your information.

(03 May '13, 06:04) Codename K

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.

link

answered 30 Apr '13, 02:46

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Thanks for your information. What if the application do not have the "/installbuilder.sh" part?

(30 Apr '13, 03:22) Codename K

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

(03 May '13, 03:27) juanjo ♦♦

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

link

answered 09 Dec '14, 02:39

Mahantesh's gravatar image

Mahantesh
1
accept rate: 0%

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

link

answered 09 Dec '14, 02:39

Mahantesh's gravatar image

Mahantesh
1
accept rate: 0%

On all other platforms simply calling uninstall will work - such as:

<runProgram> <program>path/to/uninstall</program> <programArguments>--mode unattended</programArguments> </runProgram>

(09 Dec '14, 04:33) wojciechka ♦♦

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..??

link

answered 16 Dec '14, 07:01

Mahantesh's gravatar image

Mahantesh
1
accept rate: 0%

I'm not sure I fully understand your exact scenario, could you write us to support@bitrock.com so we can follow up from there?

(22 Dec '14, 03:52) juanjo ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×128
×54
×36
×14
×9

Asked: 29 Apr '13, 18:30

Seen: 1,685 times

Last updated: 22 Dec '14, 03:52