Hi,
I have an installer which needs to overwrite certain files, with the same name, in a parent folder since a user is able to select a certain language and based on that the correct language files need to overwrite the old files. Now I notice that the new files are not able to overwrite the files in the same folder.
To explain it a bit better:
- There is a folder named Pkg and a sub folder named Config. Within this sub folder there are certain files.
- There are 14 folders named after different languages. These folders are being installed to the parent folder aka the Pkg/Config folder.
- Within these 14 language folders there is also a folder named Pkg/Config which contains 6 template files (.tpl) which need to be copied to the main Pkg/Config file based on a checkbox with language selection.
- The main Pkg/Config folder already contains these 6 template files so they need to be overwritten when being installed.
My question is, why can't I overwrite these 6 template files? These template files have no version numbering so it means Windows Installer looks at Modified/Created date and checks if the user didn't modify the file for it to be overwritten. The file hasn't been modified since it is being installed in the main Pkg/Config folder and copied from the Language/Pkg/Config folder to the main Pkg/Config folder. They have the same names. When I debug the installer I get the following message:
File: C:\Program Files\DataFlex 99.0\Pkg\Config\WindowsProject.tpl; Overwrite; Won't patch; Existing file is unversioned and unmodified - no source file hash provided to compare
If the files are unversioned and unmodified they should be overwritten? Or am I seeing this wrong? Could it be that both files are being installed rather than already existing on the target machine? Could you please give me some assistance regarding this matter so I understand better why these files refuse to overwrite?
Thanks,
Jordy
FOLLOW US
Get the latest news in Application Packaging