Hide cancel button

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
 
A

Anthony Hunter

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
 
L

limor

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
 
A

Anthony Hunter

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
 
C

Carolyn Napier [MSFT]

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>
 
G

Guest

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
 
L

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
 
A

Anthony Hunter

I believe you need to call MsiSetInternalUI() to set the user interface.


Anthony
 
L

limor

Hello Anthony,

Where should I locate the custom action?

Thanks again for all your help,
Limor
 
E

Eugen Daroczy [MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top