Hide cancel button

  • Thread starter Thread starter limors
  • Start date Start date
L

limors

Hi,

I am trying to hide cancel button in the MSI progress bar
when uninstalling from Add\Remove programs applet.
I tried changing the UninstallString registry value in
HKLM\Software\Microsoft\windows\currentversion\Uninstall\{
ProductCode}\ to the following:
msiexec /x {ProductCode}/qb!, but it does not work.
I even tried to write custom action that uses the msdn
sample to hide the cancel button in the uninstall
progress bar dialog. but it does not work too.
Please help.

Need your help ASAP,
Thanks in advance,
Limor
 
Depending on the tool you are using to create you msi may change how you
would do this, but the result will be the same.

Open your installation with Orca. Goto the control table, and find the
Cancel button for the dialog you are using. In the Attributes column,
subtract 1 from the value that is already there.

For more info on the Control table, follow this link.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/control_table.asp


Anthony
 
Hello Anthony,

Thanks for your reply, I really appreciate it.
I tested your suggestion and the Cancel button did not
appear in installation process, but appeared in uninstall
process when launching the uninstall from Add\Remove
programs applet list.
I need to hide the button in uninstall process
(specifically, when using ARP list).

Do you have any idea how to do that?

Thanks in advance,
Limor
 
Look up the UILevel property. I know you can do this from command line
by adding a '!' to the /q parameter. If you add 32 to the value at uninstall
time, the cancel button should be hidden.



Anthony
 
You can use a custom action to hide/show the cancel button as well. You'll find
details in the following MSDN topic (including sample code):
http://msdn.microsoft.com/library/d..._the_cancel_button_during_an_installation.asp.

- Carolyn Napier
Microsoft Windows Installer Team

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

MSI FAQ:
<http://www.microsoft.com/windows2000/community/centers/management/msi_faq.mspx>
 
Hi,

Carolyn, I tried to use the same action, but it does not
work, cancel button appears :(

Anthony, did you mean to add 32 to the current cancel
button attribute?

Thanks you :)
Limor
 
Hello Anthony,

Thanks you for your quick reply.
UILevel property value during uninstall is 3.
So I created setproperty action in the execute sequence
that sets the value to 35. but it did not work :(
Am I doing something wrong?

Appreciate all your help,
Thanks again,
Limor
 
Have you verified in the verbose log of the uninstallation that your custom
action that disables the Cancel button actually executed?

--
- Eugen Daroczy
Microsoft Windows Installer Team

This posting is provided "AS IS" with no warranties, and confers no rights.

Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
 
Back
Top