Prevent repair option

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

Prevent repair option

Postby tzachk » Tue Nov 15, 2016 5:16 am

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

Postby FrancescoT » Tue Nov 15, 2016 10:26 am

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

Postby tzachk » Tue Nov 15, 2016 12:02 pm

Thank you.

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

Re: Prevent repair option

Postby Ohmylord » Fri Mar 31, 2017 11:48 am

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

Postby FrancescoT » Fri Mar 31, 2017 1:39 pm

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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 79 guests