/build/static/layout/Breadcrumb_cap_w.png

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!

0 Comments   [ + ] Show comments

Answers (4)

Posted by: HotSpot 16 years ago
Orange Senior Belt
0
anyone?
Posted by: anonymous_9363 16 years ago
Red Belt
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.
Posted by: HotSpot 16 years ago
Orange Senior Belt
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!
Posted by: nheim 16 years ago
10th Degree Black Belt
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ