Skip to content

Instantly share code, notes, and snippets.

@terretta
Created August 3, 2013 19:51
Show Gist options
  • Save terretta/6147748 to your computer and use it in GitHub Desktop.
Save terretta/6147748 to your computer and use it in GitHub Desktop.
Fix to uninstall script for MacFuse 2.1.7 on Lion and Mountain Lion. // If you're getting the error "MacFUSE Uninstaller: Can not find the Archive.bom for MacFUSE Core package." it's because MacFuse was installed on Snow Leopard or earlier and the uninstall script doesn't know where the bom (bill of materials) file is. Drop to your terminal, and…
OS_RELEASE=`/usr/bin/uname -r`
case "$OS_RELEASE" in
8*)
log "Incorrect uninstall. Use the Tiger version please."
exit 1
;;
9*)
PACKAGE_RECEIPT="$INSTALL_VOLUME/Library/Receipts/MacFUSE Core.pkg"
OUTER_PACKAGE_RECEIPT="$INSTALL_VOLUME/Library/Receipts/MacFUSE.pkg"
BOMFILE="$PACKAGE_RECEIPT/Contents/Archive.bom"
;;
10*)
PACKAGE_RECEIPT=""
BOMFILE="$INSTALL_VOLUME/Library/Receipts/boms/com.google.macfuse.core.bom"
;;
11*)
PACKAGE_RECEIPT=""
BOMFILE="$INSTALL_VOLUME/Library/Receipts/boms/com.google.macfuse.core.bom"
;;
12*)
PACKAGE_RECEIPT=""
BOMFILE="$INSTALL_VOLUME/Library/Receipts/boms/com.google.macfuse.core.bom"
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment