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.
Prevent repair option
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Prevent repair option
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
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
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
Re: Prevent repair option
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.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Prevent repair option
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
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
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
Who is online
Users browsing this forum: No registered users and 167 guests