Solved

Change label on Add/Remove Programs button from Installshield MSI

Posted on 2013-01-03
8
1,276 Views
Last Modified: 2013-11-14
I would like our uninstall to always force the user through the GUI sequence from ADD/REMOVE programs.

 I can control which buttons are removed on the dialog by setting ARPNOREPAIR and ARPNOREMOVE.

However,  I am then left with only a CHANGE button which is confusing to users who want to uninstall.  

I have seen a CHANGE/REMOVE button on some applications.  

Is it possible to change this button label using a custom action from an MSI install project?
0
Comment
Question by:vas85
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
8 Comments
 
LVL 12

Expert Comment

by:jmcmunn
ID: 38756514
Well, I think by setting the ARPNOREMOVE you are making it so the button will not say "Remove" on it.

This is an old article...but I think the settings still apply to current Installshield versions: http://www.installationdeveloper.com/298/controlling-what-shows-up-in-addremove-programs/

As far as the user interface once they click this button, are you trying to change something about the way it works now?
0
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 500 total points
ID: 38759097
Unfortunately, it's impossible. Here's why.

Add/remove programs shows "change/remove" button for non-Installer installations, but separate buttons for Installer-based ones. It determines whether the installation is Installer-based or not by two things: one is value "WindowsInstaller" in the key under Uninstall; another is the key under Software\Microsoft\Installer\Products.

If we remove WindowsInstaller value (which we can do by deferred custom action), add/remove programs will then show two entries for this product - one taken from Software\Microsoft\Installer\Products, another from Uninstall. The latter one will indeed have "change/remove" button, but the other one will be like before. We would have to remove that key as well. You decide if this amount of screwing the registry is worth it.

Here's what I would try. Mark the installation as hidden from add/remove programs (property ARPSYSTEMCOMPONENT=1); create registry entries under Uninstall, representing this product with the UninstallString invoking full UI. Two values are enough - DisplayName and UninstallString.
0
 

Author Comment

by:vas85
ID: 38760786
Your suggestion worked,  thank you!

I will need to clean up the entries I created.  Is just after the InstallFinalize action the Execute sequence the correct place?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 38760871
> I will need to clean up the entries I created.

No, it will be registry setting like any other, so it should be removed automatically during uninstall.
0
 

Author Comment

by:vas85
ID: 38760997
yes, of course.  In my test, I just created them manually.

Thanks once again.
0
 

Author Comment

by:vas85
ID: 38761084
I've requested that this question be closed as follows:

Accepted answer: 0 points for vas85's comment #a38760997

for the following reason:

The technical level of detail was clearly and concisely communicated. &nbsp;<br />The solution was as simple as possible given the question. <br /><br />&nbsp;The reasons it could not be accomplished in the manner I was asking about were also well explained.
0
 

Author Closing Comment

by:vas85
ID: 38761085
The technical level of detail was clearly and concisely communicated.  
The solution was as simple as possible given the question.

 The reasons it could not be accomplished in the manner I was asking about were also well explained.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to set up a video conference between two classrooms 8 84
VS2010 Build fails to install 14 102
Why isn't my network passing a certain vlan. 24 77
PGP can't open key rings 7 48
If your app took Google’s lash recently, here are the 5 most likely reasons.
Invest in your employees with these five simple steps to improve employee engagement and retention.
The viewer will learn how to create multiple layers to apply various filters and how to delete areas from each layer’s filter.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question