Some of the DLLs are not installed if upgrading - 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!

bszabo
Posts: 5
Joined: Wed Aug 23, 2006 7:00 pm

Some of the DLLs are not installed if upgrading

Hi,

We have created a 1.0.5 version of our product, which contained a java service and some other files, including DLLs for Pocket PC.

We then released a newer version of the software, 1.0.8.

If we install 1.0.5 on a plain computer, everything works fine.

If we install 1.0.8 on a plain computer, everything is OK.

But if we upgrades an existing 1.0.5 installation to 1.0.8, then some DLLs are not installed from 1.0.8. These files are simply not there. Removed by the automatic uninstall of 1.0.5 and not installed by installing 1.0.8.

These DLLs are for PocketPC. The versions of the DLLs are: 4.3.1.81. These DLLs should not be registered, just copied. No special treatment should be done for these.

Other Pocket PC DLLs are installed properly during the upgrade.

We are using Advanced Insatller 4.3.

We generated new product code during the installation, we have selected the "Automatically upgrade older versions of the product" in the Install Parameters tab.

In case anyone can help, I can send the aip files and the generated exe files (which are about ~30MB, since they contain the JRE as well).

Thank you in advance,

Balázs
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Balázs,

This behavior is due to the fact that the version of those DLLs is not changed between 1.0.5 and 1.0.8 versions of your package. In this case "File Versioning" rules are applied. When the older package is uninstalled those DLLs are removed and because the version is not changed the DLLs are not copied back at install time:
http://msdn2.microsoft.com/en-us/library/aa368599.aspx

To avoid this behavior you need to change (increase) the version of those DLLs or you can specify a greater version in the "Overwrite with this" field from the "Edit File->Version" tab (file "Properties" from context menu).
http://www.advancedinstaller.com/user-g ... ialog.html

Let me know if you encounter any problems.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
bszabo
Posts: 5
Joined: Wed Aug 23, 2006 7:00 pm

Does not seem to be working

Dear Gigi,

I tried to increase the version of the DLLs, but it did not help.

Note, that these DLLs are third-party DLLs, which have version number 4.3.1.81. I increased the version of the files to 4.3.2, but it removed them regardless of the version numbers.

Note that these version numbers are much higher than the package version number (1.0.8). Other DLLs in this package are smaller than 1.0.5, might it be related to this issue?

I made a log of the installation (which I don't want to publish fully), which have the following lines for the DLLs which are not upgraded properly:

MSI (s) (C8:78) [17:29:23:136]: Component: DLL1.dll; Installed: Absent; Request: Local; Action: Null

For other files, the log looks like the following:

MSI (s) (C8:78) [17:29:23:136]: Component: EXE1.exe; Installed: Absent; Request: Local; Action: Local

I read the linked resource, but it is not talks about removing the non-changed DLLs. And it should not be a normal behaviour, since a lot of other DLLs are NOT changed during the upgrade, and they are NOT removed.

So this is VERY strange, and illogical.

Any other idea?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Balázs,

Actually this is a Windows Installer bug that manifest like this: On Upgrade the old version of the package is uninstalled (those DLLs are removed) followed by the installation of the new one (those DLLs are not copied back (the version is the same) because Windows Installer thinks that they were not changed).

So to avoid this bug you need to increase the version of those DLLs for the upgrade package like this: In the "Files and Folders" page choose file "Properties" from the context menu. In the "Edit File->Version" tab put 65535.65535.65535.65535 (max allowed version) in the "Overwrite with this" field.

Please let me know if you encounter any problems.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
bszabo
Posts: 5
Joined: Wed Aug 23, 2006 7:00 pm

Success

Dear Gigi,

It is now OK. I changed the version to 65535.65535.65535.65535 to the affected DLLs, and it seems to be working fine.

I hope it is not going to be removed by the newer installations. :)

Thanks for the help!

Balázs

Return to “Common Problems”