[wix-users] Run custom action on Rollback
Wally Wojciechowski
Wally.Wojciechowski at imanage.com
Thu Mar 22 07:40:22 PDT 2018
See the CustomAction element doc:
Execute
Enumeration
This attribute indicates the scheduling of the custom action. This attribute's value must be one of the following:
commit
Indicates that the custom action will run after successful completion of the installation script (at the end of the installation).
deferred
Indicates that the custom action runs in-script (possibly with elevated privileges).
firstSequence
Indicates that the custom action will only run in the first sequence that runs it.
immediate
Indicates that the custom action will run during normal processing time with user privileges. This is the default.
oncePerProcess
Indicates that the custom action will only run in the first sequence that runs it in the same process.
rollback
Indicates that a custom action will run in the rollback sequence when a failure occurs during installation, usually to undo changes made by a deferred custom action.
-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Periyasamy Chinnu via wix-users
Sent: Thursday, March 22, 2018 9:35 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Periyasamy Chinnu <biggodannauniv at gmail.com>
Subject: [wix-users] Run custom action on Rollback
I am using managed BA for creating setup. I have an immediate type custom action say "InstallCA" that will run an exe(this exe will do some
configuration) on install. On uninstall, I will remove that configuration by using another immediate type custom action. Both are working fine.
My problem is, if I cancel the uninstall, rollback occurred and uninstalled files are restored. But the InstallCA custom action is not get called, means the configuration is not restored.
I would like to run an immediate type custom action if rollback occurred.
What is the way to run a custom action on rollback?
Thanks in advance.
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
Disclaimer
This is an email from iManage. The information contained in it and in any attachments is proprietary and confidential and is designated solely for the attention and use of the intended recipient(s).
If you are not the intended recipient(s), please notify the sender immediately and then delete it (and any attachment) from your computer system(s).
Any form of distribution, copying or use of this e-mail or any part of it is strictly prohibited.
iManage does not accept legal responsibility for the contents of this e-mail and opinions expressed in it may not necessarily reflect those of the company.
iManage does not accept liability for errors or omissions, or for any damage caused by viruses or other harmful programme routines.
More information about the wix-users
mailing list