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

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
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.
Answered 11/07/2008 by: VBScab
Red Belt

Please log in to comment
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.
Answered 11/07/2008 by: AngelD
Red Belt

Please log in to comment
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?
Answered 11/07/2008 by: frodo
Orange Senior Belt

Please log in to comment
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.
Answered 11/07/2008 by: frodo
Orange Senior Belt

Please log in to comment
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.
Answered 11/07/2008 by: AngelD
Red Belt

Please log in to comment
0
sounds like you would be better off fighting for this one. present some valid argument against this requirement.
Answered 11/09/2008 by: jmcfadyen
Fifth Degree Black Belt

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