Page 1 of 2 12 LastLast
Results 1 to 5 of 8

Thread: Dynamic File Linking - Always Overwrite?

  1. #1
    Join Date
    Jan 2008
    Posts
    44

    Question 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?

  2. #2
    Join Date
    Mar 2007
    Location
    TX
    Posts
    58
    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?

  3. #3
    Join Date
    Jan 2008
    Posts
    44
    Quote Originally Posted by MGarrett View Post
    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.

  4. #4
    Join Date
    Jul 2003
    Location
    Austin, TX
    Posts
    4,403
    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.

    Otherwise.....

    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
    Christopher Painter
    ISWIX, LLC.
    Visit iswix.com for contact information

  5. #5
    Join Date
    Jan 2008
    Posts
    44
    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.....

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •