Prevent repair option

Got a problem you cannot solve? Try here.
Post Reply
tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Prevent repair option

Post 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.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Prevent repair option

Post 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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Re: Prevent repair option

Post by tzachk »

Thank you.
Ohmylord
Posts: 23
Joined: Wed Jan 23, 2013 10:19 am

Re: Prevent repair option

Post 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.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Prevent repair option

Post 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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply