This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- File not uninstalled on Update
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 16, 2011
01:31 AM
File not uninstalled on Update
I have the problem that a file is not uninstalled on an update and I'm not sure what the reason is:
The affected component of the setup has four files (*.dll). No key file in the component.
In the newer version of the setup the content of the component changed:
one of those original four files was removed and a new one was added.
The result of the update is, that the new file is installed but the removed file is not uninstalled.
Why is it so?
The affected component of the setup has four files (*.dll). No key file in the component.
In the newer version of the setup the content of the component changed:
one of those original four files was removed and a new one was added.
The result of the update is, that the new file is installed but the removed file is not uninstalled.
Why is it so?
(4) Replies

Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 16, 2011
03:31 AM
Hi.
If I understand you right, you have a file that you want to be removed in an update.
It is not enough just to remove the file from the installation. I think the reason is that when you remove the file there are no references to it from the installer. If there are no references how would the installer know that you want to remove that file.
The solution is the direct editor and the table called RemoveFile
You can find information about how to use this table in the pdf called "Designing an Update-Friendly MSI Installer". It can be found on the installshield site.
Hope this help you.
Best regards,
Jens
If I understand you right, you have a file that you want to be removed in an update.
It is not enough just to remove the file from the installation. I think the reason is that when you remove the file there are no references to it from the installer. If there are no references how would the installer know that you want to remove that file.
The solution is the direct editor and the table called RemoveFile
You can find information about how to use this table in the pdf called "Designing an Update-Friendly MSI Installer". It can be found on the installshield site.
Hope this help you.
Best regards,
Jens
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 17, 2011
12:38 AM
What type of upgrade did you configure?
Also, as you say there is no key file for the component, the folder itself becomes the keyfile or keypath to be precise.
Removal of non-key files from a component that has no keyfile will not be that straightforward.
Also, as you say there is no key file for the component, the folder itself becomes the keyfile or keypath to be precise.
Removal of non-key files from a component that has no keyfile will not be that straightforward.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 17, 2011
12:50 AM
it's a major upgrade with "install then remove unused files". The problem does not exist when using the style "complete uninstall and then reinstall".
I know that it is a bad usage of the component with no key file but I have no idea how I can change it now so that updates will run correctly. (the setup was made years ago...)
If I completely remove the actual component with the dll's and add new components for each dll with the dll as the key file, then all the dll's will be missing after the update and starting the app will then run a repair.
In the Log you can see: the dll's are installed or updated from the new component, but the removal of the origin component deletes these files at the end of the update...
I know that it is a bad usage of the component with no key file but I have no idea how I can change it now so that updates will run correctly. (the setup was made years ago...)
If I completely remove the actual component with the dll's and add new components for each dll with the dll as the key file, then all the dll's will be missing after the update and starting the app will then run a repair.
In the Log you can see: the dll's are installed or updated from the new component, but the removal of the origin component deletes these files at the end of the update...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 17, 2011
01:23 AM
The complete uninstall and subsequent install Major Upgrade will have no problems.
You have to use the RemoveFile table as jenskjensen mentions althugh not for the reasons he mentions.
That is the proper and the easiest way out of this trouble.
Go through this:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa371201(v=vs.85).aspx
Post if you need more info.
You have to use the RemoveFile table as jenskjensen mentions althugh not for the reasons he mentions.
That is the proper and the easiest way out of this trouble.
Go through this:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa371201(v=vs.85).aspx
Post if you need more info.
