pre_upgrade() { rm -rf /opt/agisoft/metashape-pro rm -d /opt/agisoft 2>/dev/null echo echo "Removing old installation" } post_install() { echo echo "The launcher is called agisoft-metashape-pro" echo } pre_remove() { echo echo "Deleting the product..." } post_remove() { rm -rf /opt/agisoft/metashape-pro rm -d /opt/agisoft 2>/dev/null echo echo "The users data were kept at the below locations" echo "\$HOME/.agisoft" echo "\$HOME/.config/Agisoft" echo "\$HOME/.local/share/Agisoft" echo }