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!
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
anyone?
Answered 05/29/2007 by: HotSpot
Orange Senior Belt

Please log in to comment
0
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.
Answered 05/29/2007 by: VBScab
Red Belt

Please log in to comment
0
I am running a synchronous Custom action so by calling windows installer again (msiexec) it falls over as you cannot run it twice...

Thanks for the suggestion though!
Answered 05/29/2007 by: HotSpot
Orange Senior Belt

Please log in to comment
0
Hi Paul,
you need to author an accompanying rollback custom action to remove the stuff you did with your initial custom action.
See: http://msdn2.microsoft.com/en-us/library/aa371369.aspx
Hope this sets you on the right track.
Regards, Nick
Answered 05/29/2007 by: nheim
Tenth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity