cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
DataAnalyzer
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?

Thanks.

Labels (2)
0 Kudos
(1) Reply
Revenera_Ian
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:

https://community.flexera.com/t5/InstallShield-Knowledge-Base/How-to-Update-All-Components-Using-the-Automation-Interface/ta-p/5592

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

https://docs.revenera.com/installshield28helplib/helplibrary/IHelpAutoISWiFileObject.htm#ref-automationinterface_2857854175_1106591

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

https://docs.revenera.com/installshield28helplib/helplibrary/IHelpAutomation.htm#ref-automationinterface_2857854175_1089342

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