This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Dynamic File Linking - Always Overwrite?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 21, 2009
06:31 PM
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?
Is there some way to make sure that all of those files in that Component are set to "Always Overwrite" on the target machine?
(8) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 22, 2009
08:24 AM
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?
Or am I misunderstanding your question?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 22, 2009
10:43 AM
MGarrett wrote:
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 22, 2009
02:31 PM
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
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 22, 2009
03:15 PM
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.....
REINSTALLMODE might just do the trick.....
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 13, 2009
10:11 AM
Is there no other way (maybe in installShield 2010)? in our basic msi project, we got many components and even more files that are dynamically linked (more than 300) of which most but not all should always be overwritten.
If not possible, i guess that would certainly be a good feature to be included in the next release. it would really really really help me right now.
If not possible, i guess that would certainly be a good feature to be included in the next release. it would really really really help me right now.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 25, 2009
09:21 AM
I need it too, I had to remove my files that should be always overwritten from the components and add them as the support files and copy them manually using xcopy. It does the work but didn't solve the problem with uninstallation.
Why always overwrite and dynamic file linking feature is still not supported by InstallShield? Is it too hard to implement?
Why always overwrite and dynamic file linking feature is still not supported by InstallShield? Is it too hard to implement?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 09, 2011
04:31 AM
I had an issue with dynamic files not shipping, although I suspect all files in the feature were not shipping. This was because one of the components in the feature had been removed
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 24, 2021
12:53 AM
function OnBegin()
begin
if (REMOVEONLY = 0) then
// backup your configuration
DeleteDir(INSTALLDIR, ALLCONTENTS);
endif;
end;
function OnMoved()
STRING szKey, svFilePath;
begin
if (MAINTENANCE) then
if (REMOVEALLMODE = FALSE) then
// DefaultFeature_Installed is not going to be execute so
// Run your methods here;
endif;
endif;
end;
