Patches seem update exe version numbers but not code - 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!

xenomorph64
Posts: 2
Joined: Wed Aug 26, 2009 1:14 am

Patches seem update exe version numbers but not code

I created an MSI installer for a package and versioned it as 1.0.0. The DLLs and EXEs in the package were build number 715. I needed to make some changes to the code to fix a bug, so I did and rebuilt the installer with the new version 1.0.1 and chose not to change the product code. The DLLs and EXEs in this version of the installer were build number 736. I then made a patch from the former MSI to the latter. When I installed it, the version numbers on the DLLs and EXEs were updated to the correct build number, but they didn't have any of the new functionality or bug fixes in them.

I've tried this procedure with "Include whole files only" turned on and off.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Patches seem update exe version numbers but not code

Hello,

I am not sure why you are encountering this behavior. Please make sure that you are following the patch rules. The version of your file changed, that means the file itself changed since the version is a resource embedded in the file. Please check the file size and date to make sure the patch installed the new version of file.

If you still can not find the issue, please send a working test case that reproduces this behavior to support at advancedinstaller dot com so we can further investigate the problem.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
xenomorph64
Posts: 2
Joined: Wed Aug 26, 2009 1:14 am

Re: Patches seem update exe version numbers but not code

After trying to put together an example to email into support, I noticed some weird things. So I was hoping you could confirm my findings.

When patching, if the system that is applying the patch no longer has the MSI it originally installed from, the patch will fail.
If the system applying the patch still has the original MSI, but it is located on a read-only medium, the patch will succeed but will not actually be applied.

In my original situation, the first version of the application (build 715) was installed off of a CD. If the above findings are wrong, is there another way that this could have caused what I experienced?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Patches seem update exe version numbers but not code

Hi,

The patch needs the original MSI only if it detects that resources
installed by the MSI are missing or corrupt.

A possible solution is to:
- go to the Advanced Installer installation folder
- go to the "templates" subfolder
- open the "template.pcp" file with Orca
- set the SEQUENCE_DATA_GENERATION_DISABLED property to 0 and save the
changes
- rebuild the patch

This will make the patch automatically generate the patch sequencing
information and the original MSI should no longer be required for the
patch installation.

If the original MSI is still required, most likely the installed files
are modified after they are copied on the target machine. In this case
there are two options:
- provide the original MSI when prompted
- make sure that the installed files are not modified

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

Return to “Common Problems”