#!/bin/bash

# Remove installed files and symlinks for TechNexion 8 Cam Demo
demo="TechNexion_8_Cam_Demo"

# Remove binary
sudo rm -f /opt/vizionviewer/bin/$demo
# Remove main script
sudo rm -f /opt/vizionviewer/$demo.sh
# Remove this uninstall script
sudo rm -f /opt/vizionviewer/uninstall_8_cam_demo.sh
# Remove desktop entry
sudo rm -f /usr/share/applications/$demo.desktop
# Remove symbolic link
sudo rm -f /usr/bin/"${demo,,}"

# echo for user
# Uninstall script completed
echo "$demo and related files have been removed." 