dturner
Posts: 4
Joined: Tue Oct 29, 2013 4:05 pm

Patch doesn't seem to update application folder files

I am currently evaluating Advanced Installer 10.6 and cannot seem to fathom why the patches I am creating do not seem to update the files in the application folder. Here are the steps I am taking to create my patch.

1. Create and build an installer.MSI file containing my install files.
2. Copy the folder containing installer.msi and project files
3. Update the copied product version (and select patch from New Product Version Dialog), project files and build and create another MSI file with my newer version of files
4. Open a new patch project
5. Set the copied msi as my upgraded, and the original msi as my target
6. Set MSP output folder and filename
7. Install original msi.
8. Install the patch, but files are not updated in the application folder. Control panel says that the correct version is installed, and that the patch is present, however the files in the application folder (if they have been updated) are always still the older versions of the files.

I am allowing the patch to allow product code mismatches, and in the log file there is still a product code error that it does not match, however upon closer inspection both MSI's indeed do have the same product code.

"MSI (c) (F0:1C) [12:23:41:631]: APPCOMPAT: no matching ProductCode found in database."

I am also allowing patch removal if that is any use.

This error is occurring both with my own application installers and with the Simple Installation found here on Patch Authoring "how to" / tutorial.

Any help and/or advice would be greatly appreciated.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Patch doesn't seem to update application folder files

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

I'm not sure why you encounter this behavior. Please make sure that your patch fulfills all the Patch Rules.
I am allowing the patch to allow product code mismatches, and in the log file there is still a product code error that it does not match, however upon closer inspection both MSI's indeed do have the same product code.

"MSI (c) (F0:1C) [12:23:41:631]: APPCOMPAT: no matching ProductCode found in database."
The above line is correct and it should not cause problems, as mentioned in the AppCompat in Windows Installer article.
I am also allowing patch removal if that is any use.
Please keep in mind that this option is not recommended as discussed in the Uninstall option is not available for patch thread. However, I'm not sure if it causes problems in your scenario. Can you uncheck it and see if the behavior persists?

Also, can you please send us a a verbose log of the patch installation so we can investigate it?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dturner
Posts: 4
Joined: Tue Oct 29, 2013 4:05 pm

Re: Patch doesn't seem to update application folder files

Thank you for your response.

I have managed to get this working now somehow, only with a simple installation of text files, however it seems to have worked.

I will try to do the same with an actual application installation and report whether or not I am still having problems.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Patch doesn't seem to update application folder files

You're welcome. I'm glad you got this working.

Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dturner
Posts: 4
Joined: Tue Oct 29, 2013 4:05 pm

Re: Patch doesn't seem to update application folder files

I think what I had been doing was basically doing a fresh install over these other files, not 'patching' them up as such.

I now have this problem, which I believe is something to do with the way Advanced Installer collects and releases the resources you point to when building the MSI, here is what is happening now.

I can add files to the MSI and then will install with the version which was present at the time they were added to the MSI, however whenever I remove a file, and desktop shortcut from the MSI application folder and rebuild and consequently make it the upgraded patch, it does not delete this file, nor the shortcut I wished to no longer be created. The other files are correctly patched.

Can you delete files from an MSI which you want to be the upgraded version for a patch?

This may be a silly question, but what are the simple steps I should take to create a patch?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Patch doesn't seem to update application folder files

Hi,

Please keep in mind that this is the normal behavior, the patch are not able to delete files. However, you can try to implement the workaround detailed on the Remove some files using patch thread.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”