In my application, one of the third party libraries I use has a license manager executable which runs continually in the background. The documentation says that when installing that the installer should call the executable with the /install option (eg. "LicensingService.exe /install") and when uninstalling to call the executable with the /uninstall option (eg. "LicensingService.exe /uninstall"). Both of these calls should be done with admin permissions.
I have set up custom actions which make these appropriate calls to the executable on installation and uninstall. My problem is though that when I uninstall my application, or perform an upgrade, the installer warns me that some of the files which will be modified are in use. Technically this is correct at the time of this message appearing, but due to the custom action the file is not actually in use when it comes to removing/modifying the LicensingService.exe file.
My question is how I can tell AdvancedInstaller not to check whether this file is in use, the custom action will ensure that. If it is not possible to prevent this warning for this file, then is there a way I could set the custom action to occur before the check of files being in use? Keep in mind that this custom action must be run as administrator and if the uninstall fails then I would need to perform a reverse action to install (IE. call "LicensingService.exe /install") to ensure the application will still work fine.
Thanks for any help.
FOLLOW US
Get the latest news in Application Packaging