[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Installshield 2015 does not remove program files during uninstall

Posted on 2016-11-07
4
Medium Priority
?
703 Views
Last Modified: 2016-11-09
Hello,

I have a Basic MSI project I upgraded from Installshield 2010 LE to Installshield 2015 Professional. My issue applies to uninstalling the program (whether from Programs and Features in the Control Panel or from updating the software with a new installer).

To produce an updated installer in 2010, I had to change the product code then add an upgrade path. The process was simple and worked as expected: when I distributed my installer, it would uninstall the previous version first (removing all program files) and correctly install the new version.

In InstallShield 2015, I follow the same instructions but the previous version is never uninstalled... even though during the install process for the new version, it says that it is uninstalling the old version. If I go into Programs and Features and try to uninstall it, the program files are not removed from the system. So the new version installer is both not removing the old version and not overwriting the old version with new files. Even though there are plenty of progress bars that visually indicate that is happening.

From searching around online, there were suggestions from people 5-10 years ago with similar issue and the suggestions involved using Installscript to delete the installation folder during the uninstall process, but there were no real examples given. I have tried to do this but can't figure out how.

There was also a suggestion from 13 years ago to go through all of the components and make sure both Permanent and Shared properties are set to No. Almost all of my components were marked as shared for some reason, but none of them were permanent. I went through and set Shared to No on all of them, this did not make a difference.

So at this point I'm stuck and unable to distribute updated installers for new versions of my software. Can anyone assist me with this issue?
0
Comment
Question by:wxitguy
[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
  • 2
  • 2
4 Comments
 

Accepted Solution

by:
wxitguy earned 0 total points
ID: 41877729
Figured it out ... I had to go to each file in my project in the Files and Folders section and right click and select "Clear Key File" ... then the files are properly removed during the uninstall process.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 41878078
By all means, this should NOT be a solution t whatever problem it was. Whoever will find this question later, keep it in mind.
0
 

Author Comment

by:wxitguy
ID: 41880634
Can you explain that further? I will admit I am not very experienced in InstallShield but the behavior of the key files appears absolutely counter intuitive.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 41880720
Sure... Any troubleshooting usually starts with examining (detailed) log files. If you are willing to go to the bottom of it, you can re-create the problem, upload log file, and I will be happy to look.

That said, there's one important aspect to understand during upgrade. When you upgrade version 1 to version 2, the un-installation of version 1 is not handled by version 2, it's handled by the installation of version 1. Version 2 only launches it. So, if you make a mistake in version 1 which in some way prevents its uninstallation or upgrade to the next version, you can't fix it in the new version 2. If you know what the problem is, you first have to fix it in version 1, run "repair from source" of version 1 (so now already-installed version 1 won't have the problem), and only then run the upgrade to version 2.

Further, the upgrade, roughly speaking can be either by (1) first uninstalling old version, then installing the new one, or (2) installing the new one, then removing the old one. In the latter case, the components that at that time belong to both just-installed version 2 and old version 1, won't be removed because they are still required for version 2. More details at https://msdn.microsoft.com/en-us/library/windows/desktop/aa371197(v=vs.85).aspx . In your case, it's important to know which way it was in your new version.

What exactly happened in your case, is not possible to tell without finding the exact reason. Generally speaking, all components should have their key files.
1

Featured Post

Industry Leaders: 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!

Question has a verified solution.

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

Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

649 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