NATIVE_OVERWRITE

Got a problem you cannot solve? Try here.
FridgeWheeL
Posts: 7
Joined: Tue Sep 17, 2013 11:47 pm

NATIVE_OVERWRITE

Postby FridgeWheeL » Mon Oct 07, 2013 6:35 am

Good Day

I am trying to force overwriting the destination files in my installation with the source files in my installer by setting the NATIVE_OVERWRITE variable to ALWAYS

This seems to work perfectly fine where existing files file version date is lesser than the new source files, but as soon as the file version is the same the files do not get overwriten even if the modify date of the source files are later than the existing destination files.

See screenshot below:
(I want to overwrite the existing file on the left with the new source file on the right)

Image

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: NATIVE_OVERWRITE

Postby FrancescoT » Mon Oct 07, 2013 10:48 am

Dear User,

please have a look at the following thread;
http://www.installaware.com/forum/viewtopic.php?f=2&t=8845

regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

FridgeWheeL
Posts: 7
Joined: Tue Sep 17, 2013 11:47 pm

Re: NATIVE_OVERWRITE

Postby FridgeWheeL » Tue Oct 08, 2013 12:04 am

FrancescoT wrote:Dear User,

please have a look at the following thread;
http://www.installaware.com/forum/viewtopic.php?f=2&t=8845

regards


Hi FrancescoT

I understand that the NATIVE_OVERWRITE_OLDER allows newer files to be overwritten with older ones, that is not my query. My query is why an older file with the same file version as the newer file in my source can not be overwritten by setting the NATIVE_OVERWRITE variable to ALWAYS

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: NATIVE_OVERWRITE

Postby FrancescoT » Tue Oct 08, 2013 9:10 am

Dear User,

That was exactly my answer, this behavior is controlled by the NATIVE_OVERWRITE_OLDER pre-variable and not by the NATIVE_OVERWRITE;

Initially FALSE. Determines whether the native setup engine is allowed to replace files that have been determined to be newer with older files that are included in the installation. Set to TRUE to permit the native setup engine to replace files that are newer with older copies (this is not recommended). This variable overrides the value of the NATIVE_OVERWRITE variable when FALSE, and the file being installed by setup is determined to be older than the file already present on the target system. The native engine compares files as follows: If both files are versioned, the decision is based on the comparison of the file versions (the installed file has to be a newer version than the present file). If none of the files are versioned, the decision is based on the comparison of file dates (the installed file has to be modified more recently than the present file). If the file being installed lacks version information but the present file contains version information, the file being installed is assumed to be older. If the file being installed contains version information but the present file lacks version information, file dates are compared.


... and in your case Both files share the same version, so it is not replaced.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

FridgeWheeL
Posts: 7
Joined: Tue Sep 17, 2013 11:47 pm

Re: NATIVE_OVERWRITE

Postby FridgeWheeL » Thu Oct 10, 2013 12:22 am

Hi Franceco

I think I misunderstood the variable a bit and I must confirm that once the NATIVE_OVERWRITE_OLDER variable was set to TRUE, it was able to overwrite the older same versioned file with the newer one.
The 1st time I tested it I think I set the NATIVE_OVERWRITE_OLD variable instead of NATIVE_OVERWRITE_OLDER.

My Apologies for the misunderstanding.

Thank you for your assistance :)

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: NATIVE_OVERWRITE

Postby FrancescoT » Thu Oct 10, 2013 10:12 am

No problem!
:D :D :D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 203 guests