Hi Giuseppe,
When a patch is created the two MSI packages (the current version and the newer version) are compared, and in the patch will be included only the files that are not identical in both MSIs (only the files that were modified in the newer version will be included). So, your problem may appear if you also modified other files, except for the two files that you want to replace. Please make sure that you followed our
Patch Authoring tutorial correctly.
Another solution for you is to create a "fake" patch following the steps below, but in this case the version of your product will not be changed (increased) and the two files added by it will not be removed when your product will be uninstalled:
- create a new MSI package
- in the Product Details page uncheck the "Register product with Windows Installer" option
- in the Files and Folders page add the files you want to replace
- in the Search page use the [Search] toolbar button to create a new search, then use the [Search Location] toolbar button, choose "Registry" and search for the registry entry that contains the path of your installed product (i.e.
HKLM\SOFTWARE\Your Company\Your Application\Path)
- go in the Launch Conditions page and in the "Custom" tab use this search as a condition (the patch will not be installed if your application is not already installed)
- go in the Install Parameters page and use this search in the "Application Folder" text field (i.e.
[MY_SEARCH])
- build and run the patch
Let us know if this helped, otherwise give us more details about your scenario.
Best regards,
Eusebiu
FOLLOW US
Get the latest news in Application Packaging