We use the file lock test during install readyToInstallActionList stage to prevent installation while the app is running, and it works fine:
But this exact same action has no effect during the uninstall preUninstallationActionList stage:
How can I make a similar check before uninstall and stop the uninstall until the app is not in use?
I have verified with Microsoft's Handle (Sysinternals) utility that the file is indeed locked.
asked 20 Dec '16, 11:39
If an error is found during uninstallation, it is silently ignored and the uninstallation continues, although the rest of actions are not executed.
In this case you can use
answered 22 Dec '16, 10:51