Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 8

Setting Always Overwrite for our files in INSTALLDIR

We understand and support the update process for replacing shared files such as DLLs in the Windows folder, but for files in our INSTALLDIR, we always want to replace them.

We run into problems when users modify some of those data files which end up with Modified Dates later than what we're trying to install. If we have Always Overwrite checked for those files in our build, our update works fine.

The problem is that we sometimes forget to set that when we update our InstallShield file configurations (e.g. we choose the same file names from another folder). They default to NOT overwrite.

Is there a way to always overwrite all files in a folder and/or a programmatic way to verify all the files in a folder are set to Overwrite so we don't make a setup build that omits that?


Labels (2)
0 Kudos
(1) Reply
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi @DataAnalyzer,

Thank you for your post.

You could try using the InstallShield Automation Interface to programmatically update your InstallShield project.

Here is a link to documentation with some sample code to help get you started:

Here is a link to the ISWiFile object that you need an object reference to to update the Always Overwrite attribute of a file:

Here is a link to documentation about the InstallShield Automation Interface:

Please give these suggestions a try. Do they work for you?

Please let us know if you have any questions or concerns. Thanks!

0 Kudos