/build/static/layout/Breadcrumb_cap_w.png

How can I stop REINSTALL via a custom action

hi guys,
I want to stop my MSI from reinstalling from within a custom action.
So, I will set the condition on the CA to REINSTALL="ALL". does anyone have some vbscript code that kills the repair and closes the msi window?

0 Comments   [ + ] Show comments

Answers (6)

Posted by: anonymous_9363 15 years ago
Red Belt
0
While I'm incredulous that anyone would want to do that, you could use a 'Terminate Installation' CA (Type 19).

If I were you, though, I'd add an additional condition that will allow you to override your CA: an administrator may want to trigger a re-install, for example.
Posted by: AngelD 15 years ago
Red Belt
0
I would agree Ian why one would want to do that.
You should be able to add a LaunchCondition (table) with a condition to prevent the reinstall.
During reinstall the REINSTALL property will be used but have in mind it will also be used during patch installation so adding NOT PATCH would remove that issue. During a repair well the REINSTALL property comes in place too so you would need to think twise how the condition should look like.
Posted by: frodo 15 years ago
Orange Senior Belt
0
hi guys,
thx for your feedback.
I agree with you both 100%, however I am told i have to do it! ridiculous i know.
so, I had added a launch condition entry: - REINSTALL="ALL" as the condition. However this runs on install aswell, which makes no sense whatsoever.
What are the steps\code to create a type 19 custom action?
Posted by: frodo 15 years ago
Orange Senior Belt
0
ignore that, sorry guys i got it, create an Error custom action and set the condition to REINSTALL="ALL".
thx for the help guys.
Posted by: AngelD 15 years ago
Red Belt
0
Nice that you got it working.
Don't forgett to trigger a repair for test so the custom action doesn't prevent a valid self-healing.
Posted by: jmcfadyen 15 years ago
5th Degree Black Belt
0
sounds like you would be better off fighting for this one. present some valid argument against this requirement.
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