Avoiding the FilesInUse dialog - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

cainrandom
Posts: 32
Joined: Wed Nov 26, 2008 11:23 pm

Avoiding the FilesInUse dialog

From http://www.advancedinstaller.com/forums ... =2&t=10511, I know what I need to do to avoid the dialog during uinstall. The service that would have to be stopped is Exchange, and I really want to avoid having the user shut down their mail server when it's not necessary. However, what do I do if the user cancels the uninstall? How do I revert whatever I do via a custom action prior to the InstallValidate step?

Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Avoiding the FilesInUse dialog

Hello,

You should use your own rollback custom action which should be scheduled before the custom action you want reverted. Also, you should set your rollback custom action with the "Rollback" execution option in the custom action's properties pane. Please note that a rollback can be triggered only by a custom action scheduled between "InstallInitialize" and "InstallFinalize" standard actions.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cainrandom
Posts: 32
Joined: Wed Nov 26, 2008 11:23 pm

Re: Avoiding the FilesInUse dialog

Thank you for the prompt reply, Mihai. Unfortunately, the files in use dialog is shown in the InstallValidate step, yes? This means that there's no way to create a rollback action for this, then, right? If so, do you have any other suggestions on how we might do this?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Avoiding the FilesInUse dialog

Hello,

You can try and set your service start custom actions in the following way:
- if you want to restart your service only on user abort or fail please set your custom action to run when the user clicks on the "Cancel" button in the "UserExit" and "FatalError" dialogs
- if you also need to restart the service at the end of a normal installation, please set the restart service custom action after the "InstallFinalize" standard action
Unfortunately, the files in use dialog is shown in the InstallValidate step, yes?
Yes, this is correct.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”