Aborting Install in WiseScript or Custom Action
Is there a way to rollback an install in a custom action?
My MSI calls an external exe which i retrieve the return code from, this is all done in a wisescript, depending on the return code I either continue with installation or terminate (rollinbg back all changes made during initial install) i know there is a terminate installation option but the install has already copied the files and does not roll them back.
I have put the CA right at the end of the script (it cannot be moved as i need the files there to execute EXE).
Any help would be greatly appreciated!
My MSI calls an external exe which i retrieve the return code from, this is all done in a wisescript, depending on the return code I either continue with installation or terminate (rollinbg back all changes made during initial install) i know there is a terminate installation option but the install has already copied the files and does not roll them back.
I have put the CA right at the end of the script (it cannot be moved as i need the files there to execute EXE).
Any help would be greatly appreciated!
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
anonymous_9363
16 years ago
If the installed app conforms to MSI guidelines, why not MSIEXEC /x {product_code}?
If not, a crude but effective solution would be to use some VB Script to delete the app's root folder and registry keys.
If it was me, I'd capture the called installation and create an MSI from it then install the resulting MSI separately as a pre-requisite, instead of an EXE. That will enable much more control.
If not, a crude but effective solution would be to use some VB Script to delete the app's root folder and registry keys.
If it was me, I'd capture the called installation and create an MSI from it then install the resulting MSI separately as a pre-requisite, instead of an EXE. That will enable much more control.
Posted by:
HotSpot
16 years ago
Posted by:
nheim
16 years ago
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.