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
- :
- Major Upgrade fails to install new file not in previous version
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 23, 2015
09:16 AM
Major Upgrade fails to install new file not in previous version
I have created a major upgrade to remove and replace the previous installation. There is one new file in the upgrade that was not present in the earlier one. It is a simple dll that we created. On a fresh installation everything works fine. On the upgrade, the new dll is not installed. Any ideas, thanks.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 23, 2015
11:11 AM
make sure your new file is in a component that has some method of file version associated with it, so that it can be used as a key file.
It also could be that the uninstall portion of the 'upgrade' removes the file just installed.
If your file is associated with a component that has a key file that does not need to be upgraded then the file will not be installed.
If the file is in a component that does not have a key file, then it will use the target directory to determine if it needs to be installed. So if the target is [INSTALLDIR] then, the file will only be installed if the target directory is missing, which in most all cases for upgrades will already exist, and so your file is not installed.If this is the case then just add a key file, it can be anything. I typically use a text file with the application version number as its content. That way for each release, the version number changes, and when the installer checks the key file to see if it already exists on the system, it will see that it does not and install all files in that particular component.
There could be some other component rule that I am missing here too. One thing to try is to run validation for your MSI. See if that identifies any problems.
It also could be that the uninstall portion of the 'upgrade' removes the file just installed.
If your file is associated with a component that has a key file that does not need to be upgraded then the file will not be installed.
If the file is in a component that does not have a key file, then it will use the target directory to determine if it needs to be installed. So if the target is [INSTALLDIR] then, the file will only be installed if the target directory is missing, which in most all cases for upgrades will already exist, and so your file is not installed.If this is the case then just add a key file, it can be anything. I typically use a text file with the application version number as its content. That way for each release, the version number changes, and when the installer checks the key file to see if it already exists on the system, it will see that it does not and install all files in that particular component.
There could be some other component rule that I am missing here too. One thing to try is to run validation for your MSI. See if that identifies any problems.
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 24, 2015
03:44 PM
Thanks Dan, turns out it was a stupid thing, the dll versions were not consistent