Page 1 of 1

Prevent repair option

Posted: Tue Nov 15, 2016 5:16 am
by tzachk
Hi Francesco.

How can I prevent users from "repairing" the install. I want only to show Uninstall.
At the dialog, it is easy, but what about preventing it from command line and control panel?

Thanks.
T.

Re: Prevent repair option

Posted: Tue Nov 15, 2016 10:26 am
by FrancescoT
Dear Tzachk,

this is simple!

At the very beginning of your main script file, you may conditionally check if REPAIR (pre-defined variable) has been set to true (this happens if passed from command line). Then if true just force it to FALSE.

Finally, remove the REPAIR option from your MAINTENANCE dialog.

Hope this helps you.

Regards

Re: Prevent repair option

Posted: Tue Nov 15, 2016 12:02 pm
by tzachk
Thank you.

Re: Prevent repair option

Posted: Fri Mar 31, 2017 11:48 am
by Ohmylord
I have an X5 install. I've removed the possibility of the Repair option, but if you right click in Add/Remove Programs you get choices to Uninstall or Change. It's a Web install and we aren't caching so if a user selects Change it immediately starts a "repair" type install but basically messes up things. Anyway to prevent the Change option? We only want Uninstall as a choice.

Re: Prevent repair option

Posted: Fri Mar 31, 2017 1:39 pm
by FrancescoT
Dear Ohmylord,

you may remove the relative controls (repair & change) from the maintenance dialog.

In addition, in your script you may force as below the following pre-defined variables and only when REPAIR or MODIFY are TRUE;

REPAIR=FALSE
MODIFY=FALSE
REMOVE=TRUE

If you do this at the very beginning of you main script, it'll be only possible to un-install your package.

Hope this helps you.

Regards