On Windows, if you right-click > Uninstall an app, by default it opens the Settings app on Apps > Installed Apps. However for many apps, it will start a custom uninstaller instead.
For an app installed using the Qt Installer Framework (QtIFW) you also get an installer (e.g. MaintenanceTool.exe). This can be executed in uninstaller mode using the --start-uninstaller command line option.
How do I link the two?
In other words, if a user tries to directly uninstall my app, I want it to invoke C:\Program Files\MyApp\MaintenanceTool.exe --start-uninstaller.