I’m trying to improve the robustness of our installer which adds our Transport Agent (C# DLL) and registers it with Exchange 2013/16 using Exchange Power Shell.
This process is slow, it can take 5-10secs to load ExPS and allows plenty of time for the user to cancel the install / uninstall.
Initially we had two customs actions:
Install (deferred) – this registers our Transport Agent using the Exchange Power Shell commands: Install-TransportAgent and Enable-TransportAgent.
Uninstall (deferred) - this removes our Transport Agent using: Uninstall-TransportAgent.
To handle the situation where a user cancels an install whilst installation is in progress, we added another custom action:
Rollback (during installation rollback) – this removes our Transport Agent using: Uninstall-TransportAgent.
The scenario I’m having trouble handling is if a user cancels the uninstall (uninstall rollback?). Our uninstall custom action has un-registered our Transport Agent, however our product remains ‘installed’.
How can I execute a rollback custom action on uninstall?
Thanks,
James.
FOLLOW US
Get the latest news in Application Packaging