Yes I agree, sorry for confusion, I mixed the versions.
v15rev7 does overwrite,
Are you sure, did you mean to say that it doesn't overwrite? PRESERVE parameter is being supplied by default:
[Expand_file1]
//Syntax==> Require_File,[Folder\]filename,[Source (if different of %Source_Sys%)],[Target(If different of %Target_Sys%)],[OverWrite]|[PRESERVE],[NOWARN],[MUI Source (if different of parameter #2)]
Echo,"Copy or Expand #1"
If,%arch%,Equal,x86,If,Not,%SourceArch%,Equal,x86,Begin
StrFormat,filename,%target_win%,%SystemRootFolderName%
If,Not,%SystemRootFolderName%,Equal,SysWOW64,Begin
Set,%source_win%,%SourceDir%\I386
Set,%source_sys%,%SourceDir%\I386
Set,%target_win%,%TargetDir%\%SystemRootFolderName%\SysWOW64
Set,%target_sys%,%TargetDir%\%SystemRootFolderName%\SysWOW64
End
End
If,Not,#6,Equal,,If,Not,%CopyMui%,Equal,On,Set,#9,#6
Else,Begin
StrFormat,filename,#1,#9
If,%arch%,Equal,x86,If,%SourceArch%,Equal,x64,Set,#9,w#9
End
StrFormat,path,#1,#8
If,|#2#3#4|,Equal,||,Run,%API%,Expand_1,#1,%Source_Sys%,%Target_Sys%,PRESERVE,#5,#6,#7,#8,#9
Else,Run,%API%,Expand_2,#1,#2,#3,#4,#5,#6,#7,#8,#9
[Expand_1]
StrFormat,CTRIM,#3\#8,\,#3
If,%arch%,Equal,x86,If,%SourceArch%,Equal,x64,set,#3,#3\#1
CopyOrExpand,#2\#9,#3,#4,#5
If,%CopyMui%,Equal,On,Run,%API%,CopyMui_On,#1,#2,#3,#4,#5,#6,#7,#8,#9
[Expand_2]
If,#4,Equal,,Set,#4,PRESERVE
If,#4,Equal,OverWrite,Set,#4,""
If,#2,Equal,,Set,#2,%Source_Sys%
If,#3,Equal,,Set,#3,%Target_Sys%
Else,StrFormat,CTRIM,#3,\,#3
StrFormat,EXT,#2,%ext%
StrFormat,CTRIM,#3\#8,\,#3
If,Not,%ext%,Equal,,Expand,#2,#3,#9,#4
Else,Begin
CopyOrExpand,#2\#9,#3,#4,#5
If,%CopyMui%,Equal,On,Run,%API%,CopyMui_On,#1,#2,#3,#4,#5,#6,#7,#8,#9
End
Regards,
Galapo.