Disable or Remove Change button from ARP control panel

Got a problem you cannot solve? Try here.
abhimudgal1
Posts: 15
Joined: Thu Jul 15, 2010 11:36 pm

Disable or Remove Change button from ARP control panel

Postby abhimudgal1 » Sat Nov 27, 2010 12:25 am

Hi,

I would like to disable or Remove Change button from ARP control panel, how can I do this, I am not able a proper solution from search, if already exist then please give me the link.

Thanks...

bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: Disable or Remove Change button from ARP control panel

Postby bokkie » Sat Nov 27, 2010 6:11 am

I can't find anything in IA's IDE that lets you do it but it can be done by adding keys to the registry in your MSIcode using the registry plug-in. For example, locate your existing package in the registry which should be visible in this key (I'm using Win 7 32-bit specifically but it might be universal on all versions):

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

When you've found your package, do you see two key values called NoRemove and NoModify? If not, create them as DWORD values.

Set NoRemove to 0 to show Uninstall button, or 1 to hide it.
Set NoModify to 0 to show the Change button or 1 to hide it.

The problem is, I don't know for certain when in the installation sequence the registry key for your package is created. In other words, you might need to create it and add those key values before IA creates it for you. From what I can see, IA does not create NoModify and NoRemove for you but I might be wrong. If it doesn't then you will have to create them in your script. Hope this helps.

Edit: I added this to my script before the Apply Install statement: Write Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Test\NoModify, 1. It works okay for me.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 12 guests