Page 1 of 1

Copy Local Files fails

Posted: Wed Dec 01, 2021 3:07 am
by tosch
In my setup script I copy the installation from where it is executed to a folder using 'Copy Local Files'.

This always used to work but always fails now. How can I find out why it fails?
The installation file is about 110mb big. Could this be a problem?

I'm currently using InstallAware X13/12.18.2020

Thomas

Re: Copy Local Files fails

Posted: Thu Dec 02, 2021 3:44 pm
by FrancescoT
You should provide some more details...othrewise, it's quite difficult to assist you.

Re: Copy Local Files fails

Posted: Fri Dec 03, 2021 5:32 am
by tosch
What details do you want to know?

Native_Engine = True

Thomas

Re: Copy Local Files fails

Posted: Fri Dec 03, 2021 2:32 pm
by FrancescoT
You said that ''Copy Local Files' used to work fine, but suddenly this stopped to work.

But...

- is the same identical build of your setup package (which worked fine untill now) that stopped to work?
- is this a new version (a new build) of your setup package?
- is the problem limited to some specific target machines?
- When is the ''Copy Local Files' invoked during the setup runtime?
- Which kind of files are you copying?
- Where are these stored and where are these should be moved/copied to?

Re: Copy Local Files fails

Posted: Mon Dec 06, 2021 3:20 am
by tosch
1. We made a new build of our setup package using Installaware X13. We moved to X13 for this new version of our software. Before we used Installaware 18 where the CopyLocalFiles always worked.
2. the problem occurs on all systems I have tested.
3. CopyLocalFiles is invoked pretty much at the end of the setup script. After that we only write one registry entry.
4. I am copying the installation itself (setupxxx.exe)
5. the setupxxx.exe is either stored in a folder under %tmp% or can also be stored on a network folder. I want to copy it to either a local folder or a network folder. No combination works for me.
6. the size of setupxxx.exe is about 110MB.
7. When writing a batch file in the setup script to copy the setupxxx.exe and executing it from the setup script it works fine with all combinations of source/target folder.

Hope this helps to figure out what's happening.

Thomas

Re: Copy Local Files fails

Posted: Tue Dec 07, 2021 2:49 pm
by FrancescoT
Can you provide a very [b"]VERY"[/b] minimal project that replicates the issue?

Re: Copy Local Files fails

Posted: Mon Dec 13, 2021 3:42 am
by tosch
I have put together a small sample installation where copy local files fails.
There is a target variable set in line 8 and the copying stuff is from line 259 - 283.

in the meantime I have circumvented the problem by deleting the file in the targetfolder first.

Thomas

Re: Copy Local Files fails

Posted: Mon Jan 10, 2022 12:17 pm
by FrancescoT
I finally had a chance to properly test the NATIVE_OVERWRITE matter.

The behaviour of "Install Files" and "Copy/Move Local Files", it's exactly identical and it works as expected.

The overwrite occurs (by default) when the setup is about to overwrite a file with a newer copy (or newer version).
While no overwrite occurs when the installed/copied file is an older copy of target file. ...and this is the correct expected behaviour. Unless you decide to force such behaviour with the use of the "NATIVE_OVERWRITE_OLDER" pre-defined variable (which is generally not recommended).

Re: Copy Local Files fails

Posted: Mon Jan 17, 2022 4:34 am
by tosch
I didn't realise that the setup also has a version information. I can now see why the file did not get overwritten.

Was this behaviour different in version X9 (Build 12.3.2018)? Because I never had a problem there.

Thomas

Re: Copy Local Files fails

Posted: Tue Jan 18, 2022 6:56 am
by FrancescoT
This behaviour was not itroduced recently, and it was the same in X9.

I can only suppose that probably you also used the "NATIVE_OVERWRITE_OLDER".