jaimes
Posts: 2
Joined: Thu Nov 26, 2009 4:48 pm

Missing file on upgrade

I'm having a rather unusual problem with one specific file in my install package. The file is called 7-zip32.dll which is attached for reference.

Here's what happens. I create an install package that includes this file, build the package, and then install it. I then change the version number of the package, rebuilt, and then install this new version in the same directory where the previous version was installed. The new version installer successfully removes the older version and installs the new version however, the 7-zip32.dll file is missing. If I then run the installer again and do a repair install the file is there.

It doesn't seem to have anything to do with the file name as I can rename this file and see the same problem. It seems to be related to the actual contents of the file because if I use a hex editor and mangle the file contents a bit so that it's no longer a valid DLL file then it does get installed properly. Also, if I install the new version to a different directory than the old one I don't see this problem.

Has anyone seen anything like this?
Attachments
missing_file.zip
(272.23 KiB) Downloaded 456 times
jm2008
Posts: 62
Joined: Tue Jul 08, 2008 10:24 am

Re: Missing file on upgrade

Check the version number of this DLL file.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Missing file on upgrade

Hi,

This behavior is caused by a known Windows Installer bug. Basically, if the file version doesn't change Windows Installer sees the EXE as installed and doesn't install it anymore. But the upgrade removes the original file, so it's missing in the end. A solution is to set the Ensure that this file overwrites any installed target file option in the Version tab of the "Edit File[/url] dialog.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jaimes
Posts: 2
Joined: Thu Nov 26, 2009 4:48 pm

Re: Missing file on upgrade

Thank you, enabling that option did the trick.

Although, it's an odd one since I have other DLL's and exe's in the project that don't change versions but that one DLL is the only one that disappears on upgrade.
BigManStan
Posts: 20
Joined: Tue Sep 08, 2009 11:00 pm

Re: Missing file on upgrade

Hi,

Can the updater.exe file suffer from this same behavior? I recently upgraded to the most recent version of Advanced Installer and am seeing similar behavior with the updater.exe file disappearing on upgrade but appearing when the repair option is used or on a fresh install.

Justin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Missing file on upgrade

Hello Justin,

The updater should have the "Ensure that this file overwrites any installed target file" option enabled by default. Please check if it is so. If it is, please send us the .aip project file and an install log in which this behavior is occurring to support at advancedinstaller dot com so we can further investigate the issue.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”