Dynamic File Linking - Always Overwrite?
I have a source folder of files/folders that is fairly dynamic and can change from build to build. So, I've used Dynamic File Linking to just have the install grab the content from there for packaging.
Is there some way to make sure that all of those files in that Component are set to "Always Overwrite" on the target machine?
Yes, In the Components view you should be able to set the Overwrite type to "Always Overwrite files without version or date consideration". This setting is the same whether the component uses dynamic file linking or not.
Or am I misunderstanding your question?
I don't have any sort of setting like that. My only component option is "Never Overwrite" with a Yes/No setting which does not accomplish what I need done.
Originally Posted by MGarrett
That setting doesn't exist in a basic MSI project and InstallShield only seems to expose file table "version lieing" for static linked files not dynamic linked files.
I can only think of a couple ways to skin this cat:
1) If your MSI is exposed ( not compressed inside setup.exe ) and not digitally signed, you could have some postbuild automation that updates the File table records for the dynamically included files.
2) Create a merge module project for the files you want to dynamically link. Build the merge module and then use post build automation to fix up the file table. Then build your MSI consuming the merge module.
Also if all of your files in your install need to always overwrite, you could consider overriding the default file versioning rules by setting REINSTALLMODE to AMUS
for contact information
Ah, I forgot to specify this is an InstallScript MSI project, but I'm sure everything mentioned is likely the same.
REINSTALLMODE might just do the trick.....