If it is a per-user installation, then take the following actions,
1. Find the silent command line to uninstall the software
2. Use active setup in the package and pass the above command line - Active setup concept
3. Enable reboot in the package
Output:
When the package is installed, it imports the active setup registry key and restarts the computer.
After restart, active setup runs the silent uninstall command line to remove the software.