Solved

Change label on Add/Remove Programs button from Installshield MSI

Posted on 2013-01-03
8
1,257 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
  • 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Microsoft Dynamics Roles question 4 98
Need to Edit a PDF 9 152
Free Text Editor for Large files? 11 67
How to install windows?? 2 41
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
If you don't know how to downgrade, my instructions below should be helpful.
This video demonstrates basic masking and how to edit the mask to reveal the desired image.
Viewers will learn how to use the Hootsuite Dashboard.

808 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