logic error in DLL version check during package update - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bviktor
Posts: 6
Joined: Tue Oct 06, 2009 4:59 am

logic error in DLL version check during package update

i'm using advinst 7.6.1 freeware/trial on windows 7 x64 prof. i've been using it for quite a while now (a few months). i'm using it to generate installers for my project.

today i've built a new release and generated the installers the usual way. let's talk about a (the older) and b (the newer) versions. the symptoms are the following:

- uninstall version a, install version b -> all good
- install version a, then update using version b installer -> 3 missing dlls in the program's root folder
- repair version b from control panel -> all good

what's causing this?

the 3 missing dlls are the ones that have been replaced with different versions in the new release. along with xchat.exe of course. but that one won't be missing, only the 3 dlls.

you can try this for yourselves:

http://code.google.com/p/xchat-wdk/down ... i&can=1&q=
http://code.google.com/p/xchat-wdk/down ... i&can=1&q=

or

http://code.google.com/p/xchat-wdk/down ... i&can=1&q=
http://code.google.com/p/xchat-wdk/down ... i&can=1&q=

and here are the project files:

http://code.google.com/p/xchat-wdk/down ... p&can=1&q=
Last edited by bviktor on Sat May 29, 2010 5:20 pm, edited 1 time in total.
bviktor
Posts: 6
Joined: Tue Oct 06, 2009 4:59 am

Re: package upgrade problem

if i make the new installer with the 3 dlls from the old installer, it updates ok. very strange.
bviktor
Posts: 6
Joined: Tue Oct 06, 2009 4:59 am

Re: package upgrade problem

okay, i think i know what's the problem. the 3 changed dlls are OLDER versions, coz i had to downgrade a dependency (gtk). but the application itself is NEWER of course.

so advinst won't update the 3 dlls during update with the downgraded ones coz it finds newer installed versions of them. but then it removes the "old" (as time of install) ones as part of the upgrade (remove old files, install new files), and won't install the new ones due to the previous dll version check!

this logic is just plain wrong. please fix this asap.

it should update the files with the ones coming with the new installer whatever version they have. there must be a reason why they're included.

if you check for dll versions in order to have the newest versions of dlls, it fails in 2 aspects:
- with this you assume binary compatibility between all dll versions, which is crazy
- after the version check the msi will remove the installed, newer versions anyway, although it should keep them

in the meanwhile i'll use the "ensure that this file overwrites any installed target file". fortunately this won't doom me to use it forever, coz during update it (apparently) checks for file versions, not the versions i specified earlier. but i'll have to use this until i update my dlls to something that is newer than any versions deployed earlier, to make sure any update will work :?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: logic error in DLL version check during package update

Hello,

Advanced Installer does not control this behavior. Windows Installer is responsible for deciding whether to keep the installed version or use the one in the package during an upgrade. The rules by which this is decided can be found on the File Versioning Rules page on MSDN. Should you want the DLLs in your new package installed you would need to properly version them.

If you do not wish to do so you can try the following: on the DLL's edit dialog, Version tab, in the File Version section select "User specified" and input the version wanted to be used in Windows Installer's check for this file. The version you specify will only be used during the check, it will not affect the file's actual version number.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
bviktor
Posts: 6
Joined: Tue Oct 06, 2009 4:59 am

Re: logic error in DLL version check during package update

GabrielBarbu wrote:Hello,

Advanced Installer does not control this behavior. Windows Installer is responsible for deciding whether to keep the installed version or use the one in the package during an upgrade. The rules by which this is decided can be found on the File Versioning Rules page on MSDN. Should you want the DLLs in your new package installed you would need to properly version them.

If you do not wish to do so you can try the following: on the DLL's edit dialog, Version tab, in the File Version section select "User specified" and input the version wanted to be used in Windows Installer's check for this file. The version you specify will only be used during the check, it will not affect the file's actual version number.

Best regards,
Gabriel
yes, i'm using that method at the moment, thanks anyway.

Return to “Common Problems”