Need solution to run Rollback custom action
Hi all,
I have a dll custom action which is running under Deferred Execution in System Context. Which do some modification in user system. If user cancels the installation of MSI, MSI will
rollback & it brings the system in original state but executed custom action changes will remain in user system. So I tried to write one more custom action to rollback the Custom Action changes. Now the problem which I am facing is, the Rollback custom action is not running. I set the Install Exec Sequence for Rollback CA is Deferred CA->Rollback CA.
I am using InstallShield 2012 tool.
Please help me to resolve this issue.
Thanks in advance
Regards,
Sanjay
I have a dll custom action which is running under Deferred Execution in System Context. Which do some modification in user system. If user cancels the installation of MSI, MSI will
rollback & it brings the system in original state but executed custom action changes will remain in user system. So I tried to write one more custom action to rollback the Custom Action changes. Now the problem which I am facing is, the Rollback custom action is not running. I set the Install Exec Sequence for Rollback CA is Deferred CA->Rollback CA.
I am using InstallShield 2012 tool.
Please help me to resolve this issue.
Thanks in advance
Regards,
Sanjay
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
andemats
12 years ago
Posted by:
sanjaypakale
12 years ago
Thanks for your reply.
/qb! is used to show limited UI. But my case is I have to show the dialogs.
Only what I want is during Rollback I have to run the custom action.
Normal uninstall works fine.
During installation whatever custom action does the modification those changes I have to bring back to original state if user cancels the installation.
Thanks,
Sanjay
/qb! is used to show limited UI. But my case is I have to show the dialogs.
Only what I want is during Rollback I have to run the custom action.
Normal uninstall works fine.
During installation whatever custom action does the modification those changes I have to bring back to original state if user cancels the installation.
Thanks,
Sanjay
Posted by:
andemats
12 years ago
Posted by:
sanjaypakale
12 years ago
Posted by:
sanjaypakale
12 years ago
Posted by:
anonymous_9363
12 years ago
If you had read anything connected with Best Practice for Windows Installer or, indeed, The Definitive Guide To Windows Installer search for 'Rollback Custom Actions'), you would know that for every CA which runs at installation time you need to author another for uninstallation time.
If, as I suspect, you are dealing with a vendor MSI, then this is a good time to introduce them to The Packager's Baseball Bat but, in the meantime, to get your package working as it should, you could easily build your own CA to rollback the original action. Let's be honest: installation comes down to file and registry activity, both of which can be dealt with by, say, script.
If, as I suspect, you are dealing with a vendor MSI, then this is a good time to introduce them to The Packager's Baseball Bat but, in the meantime, to get your package working as it should, you could easily build your own CA to rollback the original action. Let's be honest: installation comes down to file and registry activity, both of which can be dealt with by, say, script.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.