Invoking the Setup on Click of Remove option in Add/Remove Programs


S

Sanjay Sharma

Hi

Does any one know how to invoke a particular setup in full UI mode instead
of the default /x mode when user clicks on remove button available in
Control Panel -> Add/Remove programs.

Regards
Sanjay Sharma
 
Ad

Advertisements

S

Stefan Krueger [MVP]

I don't think that's possible. But you can disable the Remove button by
setting the ARPNOREMOVE property in your msi. This would force users to
click Modify and then select Remove in your maintenance welcome dialog.

--
Stefan Krueger
Microsoft Windows Installer MVP

Please post your questions in the newsgroup or vist one of these web sites:

Windows Installer FAQ
http://www.msifaq.com - http://www.msifaq.de

InstallSite - Resources for Setup Developers
http://www.installsite.org
http://www.installsite.de (GERMAN)
 
L

Luke Surace

You should be able to modify the registry after the uninstall and change the
UninstallString to be whatever you like. You might be able to implement this
as a custom action at the end of your install, or after the RegistryProduct
action
 
S

Sanjay Sharma

Hi
Thanx for the reply.
Currently Remove button is disabled but the end users want it to be enabled.
And changing the registry entry for the Uninstall string doesnt help in any
way.

Regards
Sanjay Sharma
 
B

Bob Arnson

Sanjay Sharma said:
Currently Remove button is disabled but the end users want it to be enabled.
And changing the registry entry for the Uninstall string doesnt help in any
way.

If the WindowsInstaller value in the program's Uninstall key is 1, the
Add/Remove Programs applet ignores the UninstallString value and always does
the equivalent of an 'msiexec /x{productcode}.' A trick I've used (stolen
from InstallShield) is to create a "manual" entry in the Uninstall key. Set
ARPSYSTEMCOMPONENT to 1 to have the RegisterProduct standard action create
an Uninstall key with a SystemComponent value of 1 -- that hides the entry
in Add/Remove Programs. Then I use the Registry table to create another
Uninstall key. In this key, manually specify the values that MSI usually
creates, but omit the WindowsInstaller value. Then you can make
UninstallString 'msiexec /i{productcode}' or whatever you want.
 
Ad

Advertisements

Joined
Jan 10, 2009
Messages
1
Reaction score
0
Hi,



"If the WindowsInstaller value in the program's Uninstall key is 1, the
Add/Remove Programs applet ignores the UninstallString value and always does the equivalent of an 'msiexec /x{productcode}.' A trick I've used (stolen
from InstallShield) is to create a "manual" entry in the Uninstall key. Set
ARPSYSTEMCOMPONENT to 1 to have the RegisterProduct standard action create an Uninstall key with a SystemComponent value of 1 -- that hides the entry in Add/Remove Programs. Then I use the Registry table to create another Uninstall key. In this key, manually specify the values that MSI usually creates, but omit the WindowsInstaller value. Then you can make
UninstallString 'msiexec /i{productcode}' or whatever you want.”



I want to uninstall some another application with uninsaller
of my application.

For that I created batch file which uninsall both applications which
contains

MsiExec.exe /X {0C20DEB6-642F-30D9-BBB8-D27A747E8132}

MsiExec.exe /X {CF79A9E2-D043-46F7-B833-7360AB8F7D7E}
Now I want to call that file from AddRemove programs Remove button of
my application.
For I changed HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
\CurrentVersion\Uninstall\myapp


uninstall string with path of batch file and tried to uninstall
application from add/remove programs but still it uninstall only my
application not another.

Then I tried to change the uninstall string of my application with
another application uninstall string. Then tried to uninstall
application from add/remove programs but still it uninstall only my
application not another.

What is wrong in my case?/ How to achive my functionality?



When I tried to manually change the registry string WindowsInstaller from 1 to 0 for my application then I seen two entries in the add/remove programs for my application
Then SystemComponent to 1 to hide the entry from add/remove programs for my application but which is also not working.


Why there are two entries and how to tomake it one?



Thanks & Regards
Varsha
 
Last edited:
Ad

Advertisements


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