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
- :
- I guess I should at least try the new GUID idea
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
‎Jul 10, 2008
08:32 AM
Dynamic file linking and Upgrades problem
The previous verison of the installer had some components that were dynamicaly linked. The number of files in these folders does not change so there is no need for dynamic linking. In the new version of the installer these components were changed from dynamic to static links, and keyfiles created for each component.
When testing the upgrades those component files get installed (I verified that by stopping the action right after that point), and then they get deleted. My thought here is that even thought they have the same component guid, the fact that the previously installed version had no keyfile for those components is the reason that the deletes are happening. I am thinking that if I change the GUID's on those components in the new install version, that this may prevent those component files from being un-installed. Any thoughts on this?
When testing the upgrades those component files get installed (I verified that by stopping the action right after that point), and then they get deleted. My thought here is that even thought they have the same component guid, the fact that the previously installed version had no keyfile for those components is the reason that the deletes are happening. I am thinking that if I change the GUID's on those components in the new install version, that this may prevent those component files from being un-installed. Any thoughts on this?
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2008
08:51 AM
Does an MSI run-time log file contain more detail about what's going on with the component states and actions?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2008
09:38 AM
Major upgrade setting are set to "Install setup then remove unneeded files"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2008
04:38 PM
Could be that what I sent previously contained the error...but I do not see it.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2008
05:35 PM
As a test, perhaps also see if the uninstall-before-installing major-upgrade setting makes a difference? The log file should also have a bit more information about features' and components' being removed; Tools > MSI Log Analyzer can help...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 14, 2008
04:21 PM
The uninstall before does fix the problem in that those components are no longer being deleted. It also removed the previous desktop shortcut that was still there after an upgrade. The problem with doing the un-install before is that it uninstalls the user configuration files that were modified by the users, and, it uninstalls the SQL database and all the user data...so that is out.
Changing the GUIDS does not work, the files are still the same name, and being that they previously had no keyfile, they are deleted.
I am just going to (right after InstallFiles), copy those just installed files elsewhere, and then restore them after InstallFinalize. These custom actions will have a condition of the upgrade version and wil not be needed in the future as all the dynamically linked files have been changed to static links.
Changing the GUIDS does not work, the files are still the same name, and being that they previously had no keyfile, they are deleted.
I am just going to (right after InstallFiles), copy those just installed files elsewhere, and then restore them after InstallFinalize. These custom actions will have a condition of the upgrade version and wil not be needed in the future as all the dynamically linked files have been changed to static links.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 17, 2008
05:01 PM
You could try playing with the overwrite property of those specific files. Perhaps setting them to "Never overwrite" or set conditions on them?