jstart
Posts: 18
Joined: Fri Apr 17, 2015 10:48 am

Uninstall Rollback – is it possible?

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.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall Rollback – is it possible?

Hi James,

In order to add a rollback custom action on uninstall you can place a custom action that re-registers your "Transport Agent" DLL, right before the uninstall custom action that unregisters it, then set it to be executed during installation rollback.

Let me know if this helped, otherwise give me more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”